176.第二高的薪水

解析

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

最大查询

select max(column) from table

第二大在 最大的基础上添加 where条件

select max(column) from table

where column <(select max(column) from table)

猜你喜欢

转载自blog.csdn.net/SneakyRogue/article/details/83187790