题解
获取所有员工当前的manager
http://www.nowcoder.com/questionTerminal/e50d92b8673a440ebdf3a517b5b37d62
select e.emp_no,m.emp_no from dept_emp e left join dept_manager m on e.dept_no=m.dept_no where m.emp_no!=e.emp_no and m.to_date='9999-01-01'
获取所有员工当前的manager
http://www.nowcoder.com/questionTerminal/e50d92b8673a440ebdf3a517b5b37d62
select e.emp_no,m.emp_no from dept_emp e left join dept_manager m on e.dept_no=m.dept_no where m.emp_no!=e.emp_no and m.to_date='9999-01-01'
相关推荐