Query to get max and second max in oracle in one query ?
Answer Posted / satish
SELECT SAL SECOND_MAX_SAL FROM (SELECT SAL,DENSE_RANK() OVER(ORDER BY SAL DESC) RANK FROM EMP) WHERE RANK=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to define an oracle cursor variable?
How to assign a table row to a record variable?
Is there a combination of "like" and "in" in sql?
How to define an anonymous procedure without variables?
What is Java Pool in Oracle?
What is an oracle wallet?
How to pass parameters to procedures?
How to apply filtering criteria at group level in oracle?
How to convert characters to dates in oracle?
What happens in oracle commit?
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com
What is oracle latest version?
What are group functions in oracle?
Which are the five query types available in oracle?
What do you mean by merge in oracle?