Query to get max and second max in oracle in one query ?
Answer Posted / naveen
select sal from employee where sal >= (select max(sal) from
employee where sal not in (select max(sal) from employee))
| Is This Answer Correct ? | 7 Yes | 14 No |
Post New Answer View All Answers
What is bind variable in oracle 11g?
How to fetch the row which has the max value for a column?
How to create a table in a specific tablespace?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...
What are the general rules on data consistency?
What is a nested table and how is it different from a normal table?
What is analyze command used for?
What is the difference between PFILE and SPFILE in Oracle?
How to create a stored procedure in oracle?
What is a package ? What are the advantages of package ?
Difference between hot backup vs. Cold backup?
Explain overloading. Can functions be overloaded?
What are the different types of failures that occur in Oracle database?
What is an oracle transaction?
What is a trigger and what are its types in oracle?