题解
查找当前薪水详情以及部门编号dept_no
http://www.nowcoder.com/questionTerminal/c63c5b54d86e4c6d880e4834bfd70c3b
SELECT salaries.*,dept_manager.dept_no
FROM salaries inner join dept_manager
on salaries.emp_no = dept_manager.emp_no
and dept_manager.to_date = salaries.to_date;
FROM salaries inner join dept_manager
on salaries.emp_no = dept_manager.emp_no
and dept_manager.to_date = salaries.to_date;