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 do paging with oracle?
Difference between open_form and call_form in oracle.
Explain an exception?
What is blob data type in oracle?
How to create a new user account in oracle?
How to define and use table alias names in oracle?
How does one get the view definition of fixed views/tables?
What is an oracle transaction?
Can we commit inside a function in oracle?
How to define a data source name (dsn) in odbc manager?
What is a view and how is it different from a table?
6. Display the client name and order date for all orders using the traditional method.
How to drop an index?
How to use attributes of the implicit cursor in oracle?
What is a tns service name?