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 program global area (pga) in oracle?
What is a initialization parameter file in oracle?
How to create tables for odbc connection testing?
What is concurrency in oracle?
 What are the oracle DML commands possible through an update strategy?
Differentiate between pre-select and pre-query?
What is user managed backup in Oracle?
What are the original export and import utilities?
Explain the use of online redo log files in oracle.
Calculate difference between 2 date / times in oracle sql?
How do I learn what codesets are available in oracle?
How to declare a local variable?
Explain what does a control file contain?
How to create a new table by selecting rows from another table?
Explain the use of full option in exp command.