题解 | #查找所有已经分配部门的员工的last_name和first_name以及dept_no#
查找所有已经分配部门的员工的last_name和first_name以及dept_no
http://www.nowcoder.com/practice/6d35b1cd593545ab985a68cd86f28671
select a.last_name,a.first_name,b.dept_no from employees as a inner join dept_emp as b on a.emp_no=b.emp_no where a.emp_no in (select emp_no from dept_emp)