Q:
Write SQL Query to find second highest salary of Employee.
Answer
There are many ways to find second highest salary of Employee in SQL, you can either use SQL Join or Subquery to solve this problem. Here is SQL query using Subquery :
SELECT MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) FROM Employee );
View answer
Workspace
Report Error
Discuss