Query to get max and second max in oracle in one query ?
Answer Posted / shashank yadav
Select Max(sal) from emp
where sal < any (select sal from emp);
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is tns name?
How to use select statement to count the number of rows in oracle?
Why is oracle so popular?
1) WIll all the user get the DEFAULT profile, if their current profile got deleted at any point of time? 2) What are the Situation we need to MOVE the TABLE between T.spaces? 3) What is the use of MOVING the TABLE between SCHEMA'S? 4) What are the Table Clause, Segment Clause and the Datafile Clause which will override each other? 5) Explain SORT_AREA_SIZE of Tempfile to make UNIFORM SIZE
What is recycle bin in Oracle?
How do I escape a reserved word in oracle?
What is oracle in java?
What is a system tablespace and when it is created?
How to open and close an explicit cursor in oracle?
How many categories of data types in oracle?
What are the various types of snapshots ?
What is the data pump export utility?
What is varray?
How to bring a tablespace offline?
Is oracle a relational database?