Query to get max and second max in oracle in one query ?
Answer Posted / asdasd
SELECT min(gross) FROM(SELECT distinct(gross) FROM
srbs_staff_pay_dtls ORDER
BY gross DESC) WHERE ROWNUM<=4;
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How to fetch the row which has the max value for a column?
What is a directory object?
What are the predefined tablespaces in a database?
how do we code triggers , store procedure , Performance tuning and indexing in a Java Project? Pls kindly get me the perfect answer with the code for each....thank you in advance............pls any body kindly help me soon as possible....
What is logical backup in oracle?
How to start an oracle instance?
Describe an oracle table?
Explain the use of record option in exp command.
What is literal?
Hi Masters, in Oracle Applications 11i, we hace 2 functions using the same form, i need to create 1 personalization, but that code must afect only one function.... how can i do that?
what are the default admin accounts in Oracle 10g ?
What are the different types of record groups in oracle? Explain each of them
What are the types of trigger in oracle?
What happens to the current transaction if the session is killed?
What privilege is needed for a user to insert rows to tables in another schema?