Skip to content

Commit 04c4a32

Browse files
authored
Merge pull request #2 from Priyam2773/Priyam2773-patch-2
Add SQL query for second highest salary
2 parents bd4127e + 48eac2d commit 04c4a32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

176. Second Highest Salary

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT (
2+
SELECT DISTINCT salary
3+
FROM Employee
4+
ORDER BY salary DESC
5+
LIMIT 1 OFFSET 1
6+
) AS SecondHighestSalary;

0 commit comments

Comments
 (0)