LeetCode176. 第二高的薪水

1

select
(select distinct salary from Employee
order by salary desc
limit 1 offset 1) as secondhighestsalary;

2

select max(Salary) SecondHighestSalary
from Employee
where Salary<(select max(Salary) from Employee) ;

猜你喜欢

转载自blog.csdn.net/weixin_51928751/article/details/121310790