题解 | #获取当前薪水第二多的员工的emp_no以及其对应的薪水salary#
获取当前薪水第二多的员工的emp_no以及其对应的薪水salary
http://www.nowcoder.com/practice/8d2c290cc4e24403b98ca82ce45d04db
子查询最简便的写法
select emp_no,salary from salaries s where
(select count(distinct s1.salary) from salaries s1
where s.salary<=s1.salary
)=2
汤臣倍健公司氛围 416人发布
查看3道真题和解析
