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
Whether any commands are used for months calculation? If so, what are they?
Can the query output be sorted by multiple columns in oracle?
What is bulk collect in oracle?
interview questions with answer for cts
Can we convert a date to char in oracle and if so, what would be the syntax?
Explain drop constraint oracle?
What are the oracle differences between nvl and coalesce
Explain an integrity constrains?
does the query needs a hint to access a materialized view?
List the types of joins used in writing subqueries?
How to grant create session privilege to a user in oracle?
Differentiate between function and procedure in oracle.
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com
How to change system global area (sga) in oracle?
How will you identify oracle database software release?