方法一:
select e.emp_no from employees as e where e.emp_no not in (select emp_no from dept_manager)
方法二:
select e.emp_no from employees as e left join dept_manager as d on e.emp_no=d.emp_no where d.dept_no is NULL
方法一:
select e.emp_no from employees as e where e.emp_no not in (select emp_no from dept_manager)
方法二:
select e.emp_no from employees as e left join dept_manager as d on e.emp_no=d.emp_no where d.dept_no is NULL