SQL To Exclude A List Of Items
Let's say you have a table "Primary" that contains an "Email" field.
You would like to select all the email addresses in Primary except for the list of email addresses in the Email field in a table "Exclude".
This SQL will exclude the emails in "Primary" based on those contained in "Exclude".
SELECT * FROM Primary WHERE ((Primary.Email) Not In (SELECT Email FROM Exclude))
(1421)







