Query to get max and second max in oracle in one query ?
Answer Posted / braulio
-- that's it
select * from
(select max(salary) from salary)
where rownum = 2
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to use "out" parameter properly?
What is the recommended interval at which to run statspack snapshots, and why?
How to turn on or off recycle bin for the session?
How to see the table columns used in an index?
What happens if the imported table already exists?
How to use "while" statements in oracle?
How to build data dictionary view an new database?
What is execute immediate in oracle?
How do I connect to oracle database?
What is the difference between 10g OEM and 11g OEM?
How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?
what is Single Byte Overhead...?
How to fetch the row which has the max value for a column?
How do I recompile a procedure in oracle?
What are the numeric comparison operations?