How to find 1st, 2nd, 3rd highest using select select
statement not using rownum
Answer Posted / madhavi
SELECT sal
FROM (SELECT sal, RANK() OVER(ORDER BY sal DESC) AS rnk
FROM emp)
WHERE rnk IN (1,2,3);
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
Explain the use of log option in exp command.
What do you understand by a database object? Can you list a few of them?
How to increment dates by 1 in oracle?
What is oracle server autotrace in oracle?
How to run the anonymous block again?
How remove data files before opening a database?
How to assign a tablespace to a users in oracle?
how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?
what is a Nested Loop join?
How to convert character types to numeric types?
What is oracle data type?
How to convert characters to dates in oracle?
How do I know if oracle is installed on windows?
How to get last row id?
What happens to the current transaction if the session is ended?