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
What is save point in oracle database?
How to create lov dynamically at runtime & attach to text field?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
What is program global area (pga) in oracle?
How to count duplicated values in a column in oracle?
Explain temporal data types in oracle
How to convert raw data type into text in oracle? Explain
how to handle exceptions in post production
what is Single Byte Overhead...?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
How to use "in out" parameter properly?
How would you change old and new values in an insert, delete and update triggers?
What is clustered table in Oracle?
How to execute a stored procedure in oracle?
How can I convert single byte kana characters into multi byte kana characters and vice-versa.