how to check which record does not exists in one table to another table in sql server?
1 Answer
0
Use not exists keyword to select first table record which does not exist in the second table.
Here, is the Query string
SELECT t1.name FROM
table1 t1
WHERE NOT EXISTS (
SELECT * FROM table2 t2
WHERE t2.id = t1.id)