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 display the current date in sql?
What is the maximum database size for sql express?
Enlist some predefined exceptions?
What is rename in sql?
What are inner outer left and right joins in sql?
How to handle bulk data?
What do you know by pl/sql cursors?
What are the types of join in sql?
Which is faster union or join?
Why trigger is used in sql?
Does sql*plus have a pl/sql engine?
How can you load microsoft excel data into oracle? : aql loader
What is the need of merge statement?
Why do we use view in sql?
Which one is faster ienumerable or iqueryable?