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

select salary from (select salary from table_name order by salary desc) where rownum<3;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between number and binary_float in oracle?

1106


How to assign values to data fields in record variables?

1039


How to use fetch statement in a loop?

1026


We are using Oracle apps with XML publisher.In that,we are facing some problems while giving a Footer in RTF Template.While giving a footer in RTF Template it is Visible in all the pages,but after the PDF is getiing generated,the Footer are Visible on alternate pages only (like on first page ,third page) and so on. Please provide the Solution for getting the Footer on all the pages.

5334


What is the use of aggregate functions in oracle?

1026


How to use "if" statements on multiple conditions?

1178


What happens if you use a wrong connect identifier?

1073


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

3207


Explain what are the characteristics of data files?

1086


What is coalesce function?

1078


How to rollback the current transaction in oracle?

1061


What is memory advisor in Oracle?

1083


Is the After report trigger fired if the report execution fails ?

2920


In Oracle Applications We are Using Sub Ledger Accounting. When we Transfer the Data all modules (AP,AR,CE,FA) to SLA We done Some customizations? What are They??

1849


What is catalog in Oracle?

1375