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 types of exception?
How to define a specific record type?
How to invoke the data pump export utility?
how the indexes are stored in the Oracle Database?
What operating systems are supported by oracle database 10g xe?
How to use values from other tables in update statements using oracle?
What are the differences between char and varchar2 in oracle?
What are the various types of snapshots ?
How to do paging with oracle?
How to define an anonymous procedure with variables?
What is raw datatype in oracle?
Give syntax for SQL and ORACLE joins.
Give the various exception types.
Give the advantages and disadvantages of clusters.
Explain about integrity constraint?