题解 | #查找薪水记录超过15条的员工号emp_no以及其对应的记录次数t#
获取每个部门中当前员工薪水最高的相关信息
http://www.nowcoder.com/practice/4a052e3e1df5435880d4353eb18a91c6
select x.dept_no ,x.emp_no ,x.salary maxSalary from ( select dept_no ,de.emp_no ,salary ,rank()over(partition by dept_no order by salary desc) posn from dept_emp de join salaries sa on de.emp_no = sa.emp_no ) as x where x.posn = 1