题解 | #获取所有非manager员工当前的薪水情况#
获取所有非manager员工当前的薪水情况
https://www.nowcoder.com/practice/8fe212a6c71b42de9c15c56ce354bebe
SELECT d.dept_no,s.emp_no,s.salary FROM dept_emp d INNER JOIN salaries s ON d.emp_no = s.emp_no WHERE s.to_date = '9999-01-01' AND s.emp_no NOT IN(SELECT emp_no FROM dept_manager)