Isso geralmente é resolvido usando um
NOT EXISTS
consulta:select e.*
from employees e
where not exists (select *
from works_on wo
where wo.ssn = e.ssn)
NOT EXISTS
consulta:select e.*
from employees e
where not exists (select *
from works_on wo
where wo.ssn = e.ssn)