Query to get max and second max in oracle in one query ?
Answer Posted / shashank yadav
Select Max(sal) from emp
where sal < any (select sal from emp);
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How a database is related to tablespaces?
How to start instance with a minimal initialization parameter file?
Why oracle is used?
Explain view?
Define oracle database
Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?
How many data types are supported?
How to define an oracle sub procedure?
What is save point in oracle database?
What are oracle functions?
Is a rollback possible to any savepoint?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
What is connection pool in oracle?
How will you identify oracle database software release?
What is the simplest tool to run commands on oracle servers?