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 many types of auditing in Oracle?
How to change system global area (sga) in oracle?
what are archived logs?
What is control file used for?
Why do you use stored procedures and state some of its disadvantages?
What is the string concatenation operator in oracle?
how the Oracle Prepares the Execution Plan and how it chooses the Optimal one?
Are truncate and delete commands same? If so why?
What is proxy method?
Difference between oracle's plus (+) notation and ansi join notation?
What do you mean by merge in oracle and how can you merge two tables?
What are the original export and import utilities?
How to add another datafile to a tablespace?
How is it different from a normal table?
what is the difference between substr and instr function in oracle?