一个用不到索引的方式,只是提供一种思路

select emp_no from employees
where emp_no not in
(select distinct emp_no from dept_manager);