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 do I know if oracle is installed on windows?
How to connect the oracle server as sysdba?
How can I convert single byte kana characters into multi byte kana characters and vice-versa.
what is reindexing?
How to do a full database export?
What is Library Cache in Oracle?
What is the max number of columns in an oracle table?
How to connect asp pages to oracle servers?
What is parameterized cursor in oracle?
What is the use of oracle?
How to rebuild an index in oracle?
What is the sql query to concatenate column values from multiple rows in oracle?
Can the query output be sorted by multiple columns in oracle?
What is oracle join syntax?
How to start instance with a minimal initialization parameter file?