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...

How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / subhranghshu bhattacharjee

first find second largest salary in the emp database:

select min(sal)sal from(select sal from emp order by sal
desc)
where rownum<3
u can find 3rd,4th... so on ,only change rownum
like rownum<4,rownum<5 ... so on

Is This Answer Correct ?    10 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create prepared statements using odbc_prepare()?

1104


What are information schema views?

1030


What specific conditions database should meet, before you can bulk copy data into it using bcp?

1043


What is the order by used for?

1056


How do I find my localdb version?

1029


Can you please explain the difference between primary keys and foreign keys?

1169


What function does a database engine serve in the sql server?

1081


How to loop through returning rows?

1091


What is table-valued sub query?

1026


What is partition, how will you implement it? : sql server analysis services, ssas

1102


Does the unique constraint create an index?

1133


What are the pre-defined functions in the sql server?

1185


Is oracle faster than sql server?

1008


Is it possible to create trigger on views?

1030


Where actually sql azure database is hosted?

167