题解 | #获取所有非manager员工当前的薪水情况#
获取所有非manager员工当前的薪水情况
https://www.nowcoder.com/practice/8fe212a6c71b42de9c15c56ce354bebe
select d.dept_no,e.emp_no,s.salary from employees e left join dept_emp d on e.emp_no = d.emp_no left join salaries s on s.emp_no = e.emp_no where e.emp_no not in ( select m.emp_no from dept_manager m ) and d.to_date='9999-01-01'