Query to get max and second max in oracle in one query ?
Answer Posted / subodh tiwari
SELECT ENAME,SAL FROM (SELECT ENAME,SAL FROM EMP ORDER BY
SAL DESC) WHERE ROWNUM<=2
| Is This Answer Correct ? | 15 Yes | 9 No |
Post New Answer View All Answers
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...
How to loop through a cursor variable?
How to pass a cursor variable to a procedure?
What are the different types of failures that occur in Oracle database?
What is a private synonym?
What are ddl statements in oracle?
What are the various constraints used in oracle?
What is logical backup in oracle?
How do I start tns listener?
What is the difference between count (*), count (expression), count (distinct expression)?
if you ctreate table identity
How can I combine multiple rows into a comma-delimited list in oracle?
How a tablespace is related to data files?
How to convert times to characters in oracle?
What is Java Pool in Oracle?