Question : MySQL Query Where Not Exists

Given table1 with rows id,type,name and table2 with rows id,priority,level

Some of the id's in table2 are also in table1, but in this case, I want to select all id's from table1 that do NOT have a matching id in table2.

What's the simplest way to build this query?

Answer : MySQL Query Where Not Exists

this trick will do;
1:
2:
3:
4:
5:
select t1.
  from table1 t1
  LEFT JOIN table2 t2
    ON t1.id = t2.id
 WHERE t2.id IS NULL
Random Solutions  
 
programming4us programming4us