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
where are cookies actually stored on the hard disk? : Sql dba
Why indexing is needed?
Is inner join faster than left join?
How to start the command-line sql*plus?
What is a database trigger?
What are the dml statements?
how many ways we can we find the current date using mysql? : Sql dba
What is the difference between microsoft access and sql server?
What are database links used for?
What is difference between my sql and sql?
What is a pragma statement?
How do you create a db file?
Does a primary key have to be a number?
What is indexes?
What is sql analyzer?