From 48eac2df6ed6d00caa648196c090551265e19671 Mon Sep 17 00:00:00 2001 From: Priyam2773 Date: Fri, 31 Oct 2025 00:12:45 +0530 Subject: [PATCH] Add SQL query for second highest salary --- 176. Second Highest Salary | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 176. Second Highest Salary diff --git a/176. Second Highest Salary b/176. Second Highest Salary new file mode 100644 index 0000000..672b2ac --- /dev/null +++ b/176. Second Highest Salary @@ -0,0 +1,6 @@ +SELECT ( + SELECT DISTINCT salary + FROM Employee + ORDER BY salary DESC + LIMIT 1 OFFSET 1 +) AS SecondHighestSalary;