I have two tables
Table1
ID
Name
table2
Id
code
I need a query that will give me the ID's in table 2 that are not in table 1. Yes I know this should be handled by key constraints, but it is not so I need to find the keys in table 2 that do not have a match in table 1. If I do a join I only get the records where the id's are equal.