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
Can a key be both primary and foreign?
What is pl sql architecture?
What are the sql versions?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
How many unique keys can a table have?
What is dialect in sql?
What is sql profiler in oracle?
What is data abstraction in sql?
What is difference between nchar and nvarchar?
What is difference between sql and excel?
Can ddl statements be used in pl/sql?
what is row? : Sql dba
What does closing a cursor do?
what are the authentication modes in sql server? : Sql dba
what is a constraint? Tell me about its various levels. : Sql dba