how to find the second highest salary from emp table?
Answer Posted / abhishek jaiswal
select salary from employees a where &nth_highest_salary =(select count(distinct salary)
from employees b where a.salary<=b.salary)
/
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different set operators available in sql?
What is difference between left and right outer join?
What is integrity in sql?
What are the different ways to optimize a sql query?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
How to add new employee details in an employee_details table with the following details
Explain some predefined exceptions.
What are the packages in pl sql?
What is the use of & in pl sql?
What is difference between procedure and trigger?
How to Execute a Package in PL/SQL.?
What is the difference between a subquery and a join?
What is the difference between sql and t sql?
How do I audit the sql sent to the server?
How does cross join work in sql?