select a.emp_no,b.emp_no as manager from dept_emp a left join dept_manager b on b.dept_no = a.dept_no where a.emp_no not in(select emp_no from dept_manager) 蛮直接的