题解 | #获取所有非manager的员工emp_no#
获取所有非manager的员工emp_no
https://www.nowcoder.com/practice/32c53d06443346f4a2f2ca733c19660c
SELECT e.emp_no FROM employees AS e LEFT JOIN dept_manager AS d ON e.emp_no = d.emp_no WHERE d.emp_no IS NULL;
左连接
获取所有非manager的员工emp_no
https://www.nowcoder.com/practice/32c53d06443346f4a2f2ca733c19660c
SELECT e.emp_no FROM employees AS e LEFT JOIN dept_manager AS d ON e.emp_no = d.emp_no WHERE d.emp_no IS NULL;
左连接
相关推荐