Forum Moderators: coopster
i can quite filter, based on e-mail addresses through:
SELECT DISTINCT email FROM demography
the problem is that i am not sure how to use the resulting unique email list to flag/delete the rest of the table.
any hints highly appreciated.
thanks
m
CREATE TABLE temp_emails ...;
INSERT INTO temp_emails(email)
SELECT DISTINCT email FROM old_table;
DROP TABLE old_table;
RENAME TABLE temp_table old_table;
DO BACKUP YOUR ORIGINAL TABLES BEFORE ANY DROPPING OR RENAMING otherwise I am not responsible for any blunder :)