求第二高工資

解題思路:求出最大工資a,    select top 1 Salary  from Employee where Salary <a  order by Salary desc 值得注意的一個問題是「如果不存在第二高的薪水」 怎麼返回null? --第一次這樣寫是不能返回null的 select Top 1 Salary from Employee where Salary<(select
相關文章
相關標籤/搜索