SELECT e.emp_no FROM employees e LEFT JOIN dept_manager dm on e.emp_no=dm.emp_no WHERE dm.dept_no IS NULL;