MYSQL:

select de.dept_no,e.emp_no,s.salary
from employees e join dept_emp de
on e.emp_no=de.emp_no
join salaries s
on e.emp_no=s.emp_no
where e.emp_no not IN
(select emp_no from dept_manager);

 

posted on 2021-10-12 22:49  Sempron2800+  阅读(32)  评论(0编辑  收藏  举报