题解 | #查找当前薪水详情以及部门编号dept_no#
查找当前薪水详情以及部门编号dept_no
http://www.nowcoder.com/practice/c63c5b54d86e4c6d880e4834bfd70c3b
直接联合查询就好了啊
select a.emp_no,a.salary,a.from_date,b.to_date,b.dept_no from salaries a join dept_manager b on a.emp_no = b.emp_no order by a.emp_no asc