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
what are the nonstandard string types? : Sql dba
What is rownum and rowid?
How to load data with sql*loader?
What is difference between sql function and stored procedure?
Is sql easier than java?
What is dbo in sql?
How does a self join work?
How can you select unique records from a table?
What is plpgsql language?
What is the most restrictive isolation level? : Transact sql
what is the difference between where clause and having clause? : Sql dba
Are subqueries faster than joins?
What is the process of copying data from table a to table b?
what is a table in a database ? : Sql dba
What are the two characteristics of a primary key?