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
What are the differences between char and nchar in oracle?
How do you bind variables in oracle?
What are the numeric comparison operations?
What is the difference between a primary key & a unique key?
What are the different types of database objects?
What is private procedure oracle?
How to delete multiple rows from a table in oracle?
Does oracle charge for java?
How to write a left outer join with the where clause in oracle?
Is oracle the best database?
How to get the Installed Oracle Version Information ?
What are the attributes of cursor?
How to change user password in oracle?
What is data type in oracle?
What is a cursor and what are the steps need to be taken?