Query to get max and second max in oracle in one query ?
Answer Posted / satish
SELECT SAL FROM (SELECT SAL,DENSE_RANK() OVER(ORDER BY SAL DESC) RANK FROM EMP) WHERE RANK=2;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to delete an existing row from a table in oracle?
What to do if the binary spfile is wrong for the default instance?
Is it possible to set second Primary Key Constraint in a table in Oracle Database ?
How to upsert (update or insert into a table)?
What is recovery manager(rman) backup in Oracle?
What are the advantages of oracle?
How to manage transaction isolation level?
What is bulk load in oracle?
Explain a segment?
what is a Nested Loop join?
How to execute the package in oracle?
Differentiate between translate and replace?
How to drop an existing view in oracle?
What is raw datatype?
How do I uninstall oracle 11g?