SELECT * FROM mytable mt1 WHERE NOT EXISTS (SELECT * FROM mytable WHERE id = mt1.id)SQL 2005 now implements the ANSI EXCEPT (and INTERSECT) operators...
SELECT Vendor.VendorID FROM Purchasing.Vendor Vendor EXCEPT SELECT VendorID FROM Purchasing.PurchaseOrderHeader POHeaderI've read posts where people implemented EXCEPT and gained some increase in performance, though others have said that performance is about about the same and that the execution plans are about the same (maybe the first group did some additional refactoring).