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 call a sub procedure?
Please explain oracle left join with an example?
What is the usage of analyze command in oracle?
How to connect to a remote server?
What is a partition in oracle?
Explain the use of rows option in exp command.
How to rollback the current transaction in oracle?
How a database is related to tablespaces?
How to use select statement to count the number of rows in oracle?
What do you mean by a deadlock?
Can multiple cursors being opened at the same time?
How to synchronize 2 schema's objects?
Does oracle charge for java?
Can we connect to ORACLE db using Windows Authentication?
What is oracle thin client?