I have one master table emp1 table with 3 columns and 3 rows as you can see below
empid empname empsal
1 a 100
2 b 300
3 c 500
second table emp2 with 3 columns and 1 row
empid empname empsal
1 a 100
suppose, if I have to pick the records which are only available in the first table but not in second table then I can use the below query
select * FROM emp1 b
LEFT JOIN emp2 f ON f.empid = b.empid
WHERE f.id IS NULL
but here I have third table emp3 with 3 columns and 1 row
empid empname empsal
2 b 300
if I have to pick the records which are available in the first table only, but not in second and third table, what could be the best solution?