Query to get max and second max in oracle in one query ?
Answer Posted / samir kumar sahoo
SELECT sal FROM(SELECT DISTINCT(sal) FROM employees ORDER
BY sal DESC) WHERE ROWNUM<=2;
| Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
How to insert multiple rows with one insert statement in oracle?
Explain the use of online redo log files in oracle.
What is oracle used for?
What is columnar storage what is the advantage?
When do you get a .pll extension in oracle?
What is a connect identifier?
How does the on-delete-cascade statement work?
How to delete an existing row from a table in oracle?
Whether any commands are used for months calculation? If so, what are they?
How can windows applications connect to oracle servers?
How to export your own schema?
What is a proxy class?
Explain table?
What are the different types of record groups in oracle? Explain each of them
How to connect to a remote server?