Query to get max and second max in oracle in one query ?
Answer Posted / purna chowdary
Select Sal From Emp A
WHERE 1=(Select Count(Sal) From Emp B
WHERE B.Sal>A.sal)
GROUP By Sal Desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is Redo Log Buffer in Oracle?
What are the execution control statements?
What is define in oracle?
How to use in conditions in oracle?
How to convert raw data type into text in oracle? Explain
What is connection pooling in oracle?
What is oracle analytical function?
How to use "startup" command to start default instance?
Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..
What is bulk collect in oracle?
How to view the tablespaces in the current database?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
Explain the importance of .pll extension in oracle?
How to do paging with oracle?
Explain the truncate in oracle?