题解 | #获取所有非manager员工当前的薪水情况#
获取所有非manager员工当前的薪水情况
http://www.nowcoder.com/practice/8fe212a6c71b42de9c15c56ce354bebe
多表连接+表子查询
select e.dept_no,t_emp,f.salary from dept_emp as e join (select t.emp_no as t_emp from employees as t left join dept_manager as c on t.emp_no=c.emp_no where dept_no is null )as g on t_emp=e.emp_no join salaries as f on t_emp=f.emp_no ;