We have two mailing lists that we need to combine, and then
- make sure there are no duplicates
and - compare against a 3rd list (the unsubscribe list) and remove any names that are on that list.
I’ve tried
SELECT DISTINCT *
FROM [table1.EmailAddress FROM table1 union all
SELECT table2.Emailaddress FROM table2]. AS [email];
which works fine for the 1st problem. I then tried to add
where not exist (select table3.emailaddress from table3)
to that select query, to no avail…
We’re using access 2000 ( no we won’t upgrade);
The all tables have other fields, none of which match any other tables.
Even the emailaddress fields have non matching cases…
If you have a case sensitive DB just
LOWER()all the email columns.