SELECT last_name, first_name, dept_name FROM employees e LEFT JOIN ( SELECT emp_no, dept_name FROM dept_emp de LEFT JOIN departments d USING(dept_no) ) tb USING(emp_no);
SELECT last_name, first_name, dept_name FROM employees e LEFT JOIN ( SELECT emp_no, dept_name FROM dept_emp de LEFT JOIN departments d USING(dept_no) ) tb USING(emp_no);