归档 2015年1月13日

[LeetCode]Nth Highest Salary

题目描述:

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

+----+--------+
| Id | Salary |
+----+--------+
| 1  | 100    |
| 2  | 200    |
| 3  | 300    |
+----+--------+

For example, given the above Employee table, the nth highest salary where n = 2 is ...

继续阅读

昨天

明天

归档