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 is private procedure oracle?
IS it possible to built the oracle database without setting the kernal parameters?
Explain the use of rows option in exp command.
Point the difference between translate and replace?
What is the difference between postgresql and oracle?
Describe an oracle table?
Query to retrieve record for a many to many relationship ?
How translate command is different from replace?
What is meant by a deadlock situation?
What are the differences between primary key and unique key?
How do you get nicely formatted results from an oracle procedure that returns a reference cursor?
Can we convert a date to char in oracle and if so, what would be the syntax?
Can group functions be mixed with non-group selection fields?
What is set verify off in oracle?
while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511