题解 | #查找所有员工的last_name和first_name以及对应的dept_name#
查找所有员工的last_name和first_name以及对应的dept_name
http://www.nowcoder.com/practice/5a7975fabe1146329cee4f670c27ad55
考点:多层select/left join (because there's null included)
select e.last_name, e.first_name, dnew.dept_name from employees e left join
(select * from dept_emp d
left join departments dep
on d.dept_no = dep.dept_no)as dnew
on e.emp_no = dnew.emp_no