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
What is archive log in Oracle?
What is meant by joins? List out the types of joins.
Explain an exception?
What is blob data type in oracle?
What is oracle open database communication (odbc)?
Explain compound trigger in oracle?
types of indexes and the rationale behind choosing a particular index for a situation.
How to create a single index for multiple columns?
How do you bind variables in oracle?
How do I manually uninstall oracle client?
In oracle there is column command, how will you explain that?
How to assign values to data fields in record variables?
Explain what are clusters?
What is define in oracle?
What are the advantages of oracle?