Query to get max and second max in oracle in one query ?
Answer Posted / deepa
select salary from (select salary from table_name order by salary desc) where rownum<3;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to define and use table alias names in oracle?
can anyody please send me the dump for Oracle 10g certifications for DBA path?
How would you begin to troubleshoot an ORA-3113 error?
Explain how are indexes update?
What are temporal data types in oracle?
How many categories of data types?
Explain an extent?
What is oracle database client?
Explain the use of tables option in exp command.
How to put more than 1000 values into an oracle in clause?
How to count groups returned with the group by clause in oracle?
How to use subqueries with the in operator using oracle?
Explain alias?
What are the common oracle dba tasks?
What is different types of joins?