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
Can we save images in a database and if yes, how?
Explain the difference between a procedure and a function? What do you understand by those terms?
What is tns name?
What is the order of defining local variables and sub procedures/functions?
What is flashback in Oracle?
What is snapshot is too old? Give and example for better understand.
what is the use of system.effective.date variable in oracle?
How to select some columns from a table in oracle?
Explain the use of ignore option in imp command.
What is the usage of synonyms?
what is port in oracle? how is it related to database application.
How to define and use table alias names in oracle?
How will you write a query to get a 5th rank student from a table student_report?
How to write date and time literals in oracle?
Explain oracle left join with an example?