I have two tables, and what I want to do is find the matching records and find the records that don't match.
For instance, I want to know what records are in Table A but not in Table B and vice versa.
My code looks like this but it is giving me more than 3 mil. records. I think for every entry that doesn't match it is listing all the numbers. Please HELP!!
SELECT IIf(([A].[Service Number]<>.[Service Number]),([A].[Service Number]),0) AS CommonNumber
FROM A, B;
For instance, I want to know what records are in Table A but not in Table B and vice versa.
My code looks like this but it is giving me more than 3 mil. records. I think for every entry that doesn't match it is listing all the numbers. Please HELP!!
SELECT IIf(([A].[Service Number]<>.[Service Number]),([A].[Service Number]),0) AS CommonNumber
FROM A, B;