Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Query to get max and second max in oracle in one query ?

Answer Posted / bhamidipati srinivas

select (select max(gross) from employee_dtls),(select max
(gross) as nextmaximum
from employee_dtls where gross<(select max(gross) from
employee_dtls)) from dual

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to connect to a local oracle 10g xe server?

1032


how do u setup a replication site?

2029


How to create an oracle database manually?

1127


can anyody please send me the dump for Oracle 10g certifications for DBA path?

2194


what is IDE,DMV in sql server?

2878


Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1991


What does sharding mean?

1052


List out the components of logical database structure of oracle database.

1088


Can multiple columns be used in group by in oracle?

1034


Explain overloading. Can functions be overloaded?

1045


Why do we need integrity constraints in a database?

1073


What is meant by an index?

1218


What are advantages of dateset in datastage?

2305


Explain oracle instance.

1228


How to sort output in descending order in oracle?

1100