Second Highest Salary

后端 未结 10 1551
无人共我
无人共我 2020-12-20 06:14

Write a SQL query to get the second highest salary from the Employee table.

    | Id | Salary |
    | 1  | 100    |
    | 2  | 200    |
    | 3  | 300    |
<         


        
10条回答
  •  遥遥无期
    2020-12-20 07:06

    you should be able to do that with OFFSET 1/FETCH 1:

    https://technet.microsoft.com/en-us/library/gg699618(v=sql.110).aspx

提交回复
热议问题