Query to get max and second max in oracle in one query ?
Answer Posted / raghav
SELECT MAX(SAL)
FROM EMPLOY
WHERE SAL < ( SELECT MAX(SAL) FROM EMPLOY )
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
How remove data files before opening a database?
What is a nvl function?
How to establish administrator authentication to the server?
How to call a stored function with parameters?
Please explain joins in oracle?
Explain the use of show option in imp command.
What do you mean by merge in oracle?
How to load data from external tables to regular tables?
What will be the syntax to find current date and time in format "yyyy-mm-dd"?
What are the general rules on data consistency?
How to convert a string to a date in oracle database?
How to define a variable of a specific record type?
In AP we done Customizations for Late Payments Charges. For Reporting Purpose What are the Documents Prepared for Customer Understanding??
What is control file used for?
Difference between open_form and call_form in oracle.