Question : How do I find items in one table that are not in another?

I have two tables A and B, both have a column 'id'. I want a mysql query that delivers all the rows of A for which A.id is not in the B.id column.

Answer : How do I find items in one table that are not in another?

1:
select * from A where A,id not in (select B.id from B)
Open in New Window Select All
Random Solutions  
 
programming4us programming4us