题解 | #获取所有非manager员工当前的薪水情况#
获取所有非manager员工当前的薪水情况
http://www.nowcoder.com/practice/8fe212a6c71b42de9c15c56ce354bebe
select c.dept_no,a.emp_no,d.salary
from employees a
inner join dept_emp c on a.emp_no=c.emp_no
inner join salaries d on c.emp_no=d.emp_no
where a.emp_no not in (select emp_no from dept_manager)