I have two tables. The main table is "CompleteEmailListJuly11" and the second table is "CurrentCustomersEmailJuly11". I want to delete the rows in the CompleteEmailListJuly11 table that CurrentCustomersEmailJuly11 is based on email.
I tried this next Delete example, but it does not do anything close to what I am trying to do. It only shows me those that EXIST is in the database, it does not show me a list of letters that do NOT match.
DELETE * FROM CompleteEmailListJuly11 AS i WHERE EXISTS ( SELECT 1 FROM CurrentCustomersEmailJuly11 WHERE CurrentCustomersEmailJuly11.email = i.EmailAddress )
Help is appreciated.
source share