Solve problem 176
This commit is contained in:
parent
283cbb492d
commit
2ad850464e
1 changed files with 8 additions and 0 deletions
8
leetcode/0176-second-highest-salary/main.sql
Normal file
8
leetcode/0176-second-highest-salary/main.sql
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
SELECT (
|
||||||
|
SELECT salary
|
||||||
|
FROM Employee
|
||||||
|
GROUP BY salary
|
||||||
|
ORDER BY salary DESC
|
||||||
|
LIMIT 1
|
||||||
|
OFFSET 1
|
||||||
|
) AS "SecondHighestSalary";
|
Loading…
Reference in a new issue