Find out the 3rd highest salary?
Answer Posted / av.anil
SELECT * FROM
(SELECT Ename,Sal,
DENSE_RANK()
OVER(ORDER BY Sal DESC) "D_RK"
FROM Emp)
WHERE D_RK = 3;
This query gives exact highest salary.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how to get help information from the server? : Sql dba
What is rowtype?
What is bulk collect in pl sql?
What is rollback?
Explain what is a view?
What is the difference between delete and truncate commands?
Can 2 queries be executed simultaneously in a distributed database system?
What are the types of join and explain each?
What does trigger mean in psychology?
Is sql workbench free?
what is not null constraint? : Sql dba
Does group by remove duplicates?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
What does count (*) mean?
How to create a menu in sqlplus or pl/sql?