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
Why is oracle used?
Explain oracle’s system global area (sga).
How to revoke create session privilege from a user in oracle?
How to create a stored procedure in oracle?
How to export data to a csv file?
What is recycle bin in Oracle?
What do you understand by database schema and what does it hold?
What is a trigger oracle?
What is oracle analytical function?
What is the fastest query method to fetch data from the table?
How to connect to a remote server?
What to do if the binary spfile is wrong for the default instance?
What are the attributes that are found in a cursor?
What is an oracle database table?
How are extents allocated to a segment?