How to find 1st, 2nd, 3rd highest using select select
statement not using rownum
Answer Posted / ajit
select distinct *
from (select e.*,dense_rank()over(order by sal desc) rn from emp e)
where rn in (1,2,3);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to create a table index?
What is data block in Oracle?
What do you mean by merge in oracle?
What is a subquery?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
What is Segment Advisor in Oracle?
What is connection pooling in oracle?
Where do we use decode and case statements?
How to manage transaction isolation level?
How to set a transaction to be read only in oracle?
What is meant by recursive hints in oracle?
How to use attributes of the implicit cursor in oracle?
What are the different pseudo commands? Explain in general?
State some uses of redo log files?
How to use fetch statement in a loop?