SELECT ID FROM Table1 LEFT JOIN Table2 ON Table1.Id=Table2.Id WHERE Table2.Id IS NULL
SELECT * FROM Table2 EXCEPT SELECT * FROM Table1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)