E
ecwhite
Hello Please Help,
I have two tables table1, and table2. They both have patient information
with patient_id as unique identifier.
Table1 has 26609 patients and table two has 26638 patients which is the same
record except table2 has more patients than table1.
I just want to get the records (patients) that are not in both tables. I
already have a union query that combines them together e.g
SELECT table1.[patient_id] FROM table1;
UNION ALL SELECT table2.[patient_id] FROM table2;
For difference I have tried
Where (isnull(table1) = False AND isnull(table2) = True)
OR (isnull(table1) = True AND isnull(table2) = False)
OR (table1 <> table2)
I have two tables table1, and table2. They both have patient information
with patient_id as unique identifier.
Table1 has 26609 patients and table two has 26638 patients which is the same
record except table2 has more patients than table1.
I just want to get the records (patients) that are not in both tables. I
already have a union query that combines them together e.g
SELECT table1.[patient_id] FROM table1;
UNION ALL SELECT table2.[patient_id] FROM table2;
For difference I have tried
Where (isnull(table1) = False AND isnull(table2) = True)
OR (isnull(table1) = True AND isnull(table2) = False)
OR (table1 <> table2)