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 / purna chowdary

Select Sal From Emp A
WHERE 1=(Select Count(Sal) From Emp B
WHERE B.Sal>A.sal)
GROUP By Sal Desc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How index is implemented in oracle database?

970


what is a Nested Loop join?

2057


How to pass a parameter to a cursor in oracle?

1127


How do I uninstall oracle 11g?

1074


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1812


What do you mean by merge in oracle and how can we merge two tables?

1018


How do you tell what your machine name is and what is its IP address?

2035


How to find the duplicate rows count from employees table in oracle?

1060


How to create an initialization parameter file?

1007


What do you mean by merge in oracle and how can you merge two tables?

928


How to export your own schema?

986


Respected sir, Please send me technical questions related to oracle apps..

1781


How can you merge two tables in oracle?

959


How to resolve name conflicts between variables and columns?

1000


What is the usage of control file in oracle?

1050