Query to get max and second max in oracle in one query ?
Answer Posted / satish
SELECT SAL SECOND_MAX_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
What is parameterized cursor in oracle?
How to convert a date to char in oracle? Give one example.
What is instant client oracle?
How to create tables for odbc connection testing?
What do you mean by merge in oracle and how can you merge two tables?
What is the use of file param in imp command?
can u send the sql dumps to sivakumarr1987@gmail.com plz help me
How to connect the oracle server as sysdba?
Why should I use oracle database?
How to write an inner join with the where clause in oracle?
What is a private synonym?
How to use "in out" parameter properly?
How to change user password in oracle?
What is Redo Log Buffer in Oracle?
Explain the features of oracle?