SQL Command for finding duplicates in 4 different tables
Posted: Tue Apr 05, 2011 5:24 pm
Hello,
I need help with the following issue:
I want to remove duplicates emails from 4 different tables ( All 4 tables have the same columns: category, compnay's name, email address and website).What is the SQL command for this action, is there a way of deleting the duplicates automatically?
I was using this for checking the duplicates in 2 tables:
SELECT "Email" FROM "Table1", "Table2" WHERE "Table1"."Email" = "Table2"."Email"
it does notwork for 4 tables...Please help me!
Thank you very much,$
Olga
I need help with the following issue:
I want to remove duplicates emails from 4 different tables ( All 4 tables have the same columns: category, compnay's name, email address and website).What is the SQL command for this action, is there a way of deleting the duplicates automatically?
I was using this for checking the duplicates in 2 tables:
SELECT "Email" FROM "Table1", "Table2" WHERE "Table1"."Email" = "Table2"."Email"
it does notwork for 4 tables...Please help me!
Thank you very much,$
Olga