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 the minimum client footprint required to connect c# to an oracle database?
Can we call procedure inside function in oracle?
11. Display the client number and name and the client number and name of the person who referred that client.
How to create a new table by selecting rows from another table?
Difference between oracle's plus (+) notation and ansi join notation?
Is there a combination of "like" and "in" in sql?
How to use "in out" parameter properly?
How to run create database statement?
What is a data lock in oracle?
How to define a sub function?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
What is open database communication (odbc) in oracle?
What is meant by an index?
How to use existing values in update statements using oracle?
Explain the different normalization forms?