Answers for "how to display second highest salary only in sql"

SQL
7

n highest salary in sql

SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP N salary
FROM #Employee
ORDER BY salary DESC
) AS temp
ORDER BY salary
Posted by: Guest on February-08-2020
0

write sql query to find the second highest salary of employee

SELECT MAX(Salary) From Employee
 WHERE Salary < ( SELECT Max(Salary) FROM Employee);
Posted by: Guest on November-07-2021

Code answers related to "how to display second highest salary only in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language