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
How to write a query to show the details of a student from students table whose
what is self-join? : Sql dba
What are the types pl/sql code blocks?
What does partition by mean in sql?
what is a cursor? : Sql dba
Define sql delete statement.
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
What is the difference between execution of triggers and stored procedures?
explain access control lists. : Sql dba
What is gpt format?
How do I install sql?
What does where 1/2 mean in sql?
What is %type in pl sql?
which operator is used in query for pattern matching? : Sql dba
What is the default isolation level in sql server? : Transact sql