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
Does view contain data?
Can we connect to postgresql using sql developer?
how to return query output in html format? : Sql dba
name 3 ways to get an accurate count of the number of records in a table? : Sql dba
What is the difference between clustered and non-clustered index in sql?
What is union, minus and interact commands?
What are the differences between implicit and explicit cursors?
What are stuff and replace function?
How do I edit a trigger in sql developer?
Which sorts rows in sql?
What does pl sql stand for?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is sql query optimization?
What is cartesian join in sql?
Differentiate between syntax and runtime errors.