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
In AP we done Customizations for Late Payments Charges. For Reporting Purpose What are the Documents Prepared for Customer Understanding??
What privilege is needed for a user to create indexes in oracle?
What are a query and state the different types of queries and their uses?
What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.
What is a package ? What are the advantages of package ?
Will you be able to store pictures in the database?
What is a private synonym?
How to delete a user account in oracle?
How to write a left outer join with the where clause in oracle?
Whether any commands are used for months calculation? If so, what are they?
Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun
types of indexes and the rationale behind choosing a particular index for a situation.
How to lock and unlock a user account in oracle?
What are the original export and import utilities?
In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?