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
query optmization techniques and quwry analyser+projects+ppts
What is the quickest way to export a table to a flat file?
List out the difference between commit, rollback, and savepoint?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
Explain an index segment?
What is the difference between postgresql and oracle?
How can we force the database to use the user specified rollback segment?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
What is the difference between a hot backup and a cold backup in oracle?
How to sort the query output in oracle?
What is an oracle table?
How to create tables for odbc connection testing?
Please explain oracle data types with examples?
What do you understand by database schema and what does it hold?
Explain about integrity constraint?