题解 | #获取所有员工当前的manager#
获取所有员工当前的manager
http://www.nowcoder.com/practice/e50d92b8673a440ebdf3a517b5b37d62
SELECT de.emp_no, dm.emp_no AS manager
FROM dept_emp de
JOIN dept_manager dm
USING(dept_no)
WHERE de.emp_no != dm.emp_no
获取所有员工当前的manager
http://www.nowcoder.com/practice/e50d92b8673a440ebdf3a517b5b37d62
SELECT de.emp_no, dm.emp_no AS manager
FROM dept_emp de
JOIN dept_manager dm
USING(dept_no)
WHERE de.emp_no != dm.emp_no
相关推荐