Query to get max and second max in oracle in one query ?
Answer Posted / naveen
select sal from employee where sal >= (select max(sal) from
employee where sal not in (select max(sal) from employee))
| Is This Answer Correct ? | 7 Yes | 14 No |
Post New Answer View All Answers
What are the differences between char and nchar in oracle?
What is the disadvantage of User defind function?
How to use subqueries with the exists operator in oracle?
List out the components of logical database structure of oracle database.
How do I start tns listener?
Can group functions be mixed with non-group selection fields?
What happens in oracle commit?
How do I find the database name in oracle?
What is a system tablespace?
What is the data pump import utility?
What is PL/SQL ?
how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?
State the various uses of dbcc command?
How to concatenate two text values in oracle?
How to return top 5 rows in oracle?