Reputation: 54
Three table has a column with, for example, names. Need to know which names do not exist in the other three tables. Need to do this as efficiently as possible.
Upvotes: 1
Views: 590
Reputation: 14004
select name from table1, table2, table3
where name not in (select name from other1, other2, other3)
Upvotes: 1