How to find non-existing data from another Table by JOIN?

An INNER JOIN doesn’t help here.

One way to solve this is by using a LEFT JOIN:

SELECT w.* 
FROM TABLE1 W 
LEFT JOIN TABLE2 V ON W.name = V.name
WHERE ISNULL(V.name);

Leave a Comment