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
What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?
How to convert times to characters in oracle?
What is catalog in Oracle?
How to use in conditions in oracle?
How to convert csv to table in oracle?
What is the string concatenation operator in oracle?
Explain about the analyze command in oracle?
When do you get a .pll extension in oracle?
What is archive log in Oracle?
When do you get a .pll extension in oracle? Explain its importance
How to select some columns from a table in oracle?
What are the advantages of oracle 12c?
How to connect to a remote server?
If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?
What are the various types of snapshots ?