Answers for "select where not in another table"

SQL
1

select from one table where not on the other

SELECT id FROM a.table
WHERE id NOT IN (SELECT b.id FROM b.id)
Posted by: Guest on November-17-2020
1

join to find results not in another table

SELECT t1.name
FROM table1 t1
LEFT JOIN table2 t2 ON t2.name = t1.name
WHERE t2.name IS NULL
Posted by: Guest on September-18-2020

Code answers related to "select where not in another table"

Code answers related to "SQL"

Browse Popular Code Answers by Language