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
How to write numeric literals in oracle?
Explain alias?
How to define a specific record type?
please explain.. DB architecture ...
How to write a query with a right outer join in oracle?
Does oracle partitioning improve performance?
Explain the use of show option in imp command.
Write a syntax for update query in oracle?
What exactly do quotation marks around the table name do?
How to drop a stored function?
What is meant by an index?
Is java required for oracle client?
how to make an oracle object
What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.
Can multiple columns be used in group by in oracle?