dunno why u need 2 ids...
Maybe may story will help u.
I have 2 tabs cl_ip, cl_map_country in one are stored country codes in another their coordinates on map. First table is filled authomaticaly, second I do manualy. So I need to know what countries should I enter
( which exist in cl_ip and do not in cl_map_country). Similar to u right?
So:
select distinct ip_country_code2 from cl_ip LEFT JOIN cl_map_country ON ip_country_code2 = cn_country_code2 WHERE cn_country_code2 IS NULL
ip_country_code2 is field from cl_ip table
cn_country_code2 is field from cl_map_country table
Hope after this example you will be able to solve your problem.