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 / haddy

select ename,salary from (select distinct(salary) from
employee order by salary desc) where rownum<=2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bulk copy or bcp in oracle?

1114


How many types of tables are there in oracle?

1053


Explain the use of owner option in exp command.

1040


What is the difference between $oracle_base and $oracle_home?

1079


Is there any function in oracle similar like group_concat of mysql?

1048


In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?

2281


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

1938


How to assign values to variables?

1090


How can we find out the current date and time in oracle?

1086


What are the numeric comparison operations?

1106


How to load data from external tables to regular tables?

1057


List out the types of joins.

1149


How many types of tables supported by oracle?

1069


What do you mean by a database transaction & what all tcl statements are available in oracle?

988


What is dual table oracle?

979