I have two tables, addr_list and usps_zip. I would like to find all records in addr_list that have an incorrect county name based on the zip code when I compare zip code to the zip code in the usps_zip table. I tried
SELECT * FROM ADDR_LIST WHERE ADDR_LIST.COUNTY NOT IN (SELECT COUNTY FROM USPS_ZIP WHERE USPS_ZIP.ZIP = ADDR_LIST.ZIP)
but all I get are all the records in addr_list. I must be missing something simple. Can someone tell me what I am doing wrong?
Thanks,
Mark
SELECT * FROM ADDR_LIST WHERE ADDR_LIST.COUNTY NOT IN (SELECT COUNTY FROM USPS_ZIP WHERE USPS_ZIP.ZIP = ADDR_LIST.ZIP)
but all I get are all the records in addr_list. I must be missing something simple. Can someone tell me what I am doing wrong?
Thanks,
Mark