题解 | #获取当前薪水第二多的员工的emp_no以及其对应的薪水salary#
获取当前薪水第二多的员工的emp_no以及其对应的薪水salary
http://www.nowcoder.com/practice/8d2c290cc4e24403b98ca82ce45d04db
开窗排序筛选第二即可 select t,q from (select emp_no as t,salary as q,dense_rank() over(order by salary desc)as m from salaries)as c where m=2;