SELECT *
FROM employees
WHERE not EXISTS
(
select emp_no
from dept_emp
where employees.emp_no=dept_emp.emp_no
);

注意exists前面直接跟where,不需要附加任何字段名