题解 | #获取所有非manager的员工emp_no#
获取所有非manager的员工emp_no
http://www.nowcoder.com/practice/32c53d06443346f4a2f2ca733c19660c
知识点
1.非manager就是emp_no不在表中用not in
代码
select emp_no from employees
where emp_no not in (
select emp_no from dept_manager)
获取所有非manager的员工emp_no
http://www.nowcoder.com/practice/32c53d06443346f4a2f2ca733c19660c
1.非manager就是emp_no不在表中用not in
select emp_no from employees
where emp_no not in (
select emp_no from dept_manager)
相关推荐