Query to get max and second max in oracle in one query ?
Answer Posted / bhamidipati srinivas
select (select max(gross) from employee_dtls),(select max
(gross) as nextmaximum
from employee_dtls where gross<(select max(gross) from
employee_dtls)) from dual
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Explain the types of exception?
What is data file?
Name the three major set of files on disk that compose a database in Oracle?
What is a snapshot log?
What is a lookup table in oracle?
How to create a table index in oracle?
What do you know about normalization? Explain in detail?
How to connect the oracle server as sysdba?
What is an oracle table?
what is dynamic SGA and static SGA
What is Segment Advisor in Oracle?
what is meant by magic query
What is an oracle recycle bin?
Can we connect to ORACLE db using Windows Authentication?
Why do we need integrity constraints in a database?