Query to get max and second max in oracle in one query ?
Answer Posted / samir kumar sahoo
SELECT sal FROM(SELECT DISTINCT(sal) FROM employees ORDER
BY sal DESC) WHERE ROWNUM<=2;
| Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
How to load excel data sheet to oracle database
How to call a stored function in oracle?
What suggestions do you have to reduce the network traffic?
Explain the use of ignore option in imp command.
List out the components of logical database structure of oracle database.
How to load data from external tables to regular tables?
How to see free space of each tablespace?
What is the purpose of save points in oracle database?
Why do we use bulk collect in oracle?
Explain the blob datatype?
How to apply filtering criteria at group level in oracle?
Write a syntax for update query in oracle?
How to define a data field as not null?
How to create a table index in oracle?
How to define and use table alias names in oracle?