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
What is oracle thin client?
How to set up autotrace for a user account?
Explain the use of indexes option in exp command.
How to add another datafile to a tablespace?
what is the difference between restoring and recovering?
What is the best way to do multi-row insert in oracle?
How to find the duplicate rows count from employees table in oracle?
What are the varoius components of physical database structure of oracle database?
What is the usage of synonyms?
HI, Please let me know the syllabus for Oracle OCA and OCP Certification
How can we find out the current date and time in oracle?
How to write a left outer join with the where clause in oracle?
Why does Oracle not permit the use of PCTUSED with indexes?
Explain oracle insert into command?
what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?