MYSQL:

select last_name,first_name,dept_name
from employees e left join dept_emp de
on e.emp_no=de.emp_no
left join departments d
on d.dept_no=de.dept_no;

 

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