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 / ashish kumar

To find nth maximum salry

Select salary from tbl_name a where
n-1=(Select count(distinct(count(*))) from tbl_name b
where b.salary>a.salary)

Is This Answer Correct ?    10 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the different types of locks available in sql server?

978


What are cascading parameters in ssrs reports?

231


List the different index configurations possible for a table?

934


What is difference between line feed ( ) and carriage return ( )?

908


What is intellisense?

1053


What is a ddl statement?

914


What is the full meaning of dml?

952


What is the purpose of indexing?

1046


What is provisioning, billing and metering, and connection routing concepts in the service layer?

113


What are trace flags?

1033


Explain what are various ways to enhance the ssrs report?

1044


What is the difference between char and varchar2 datatype in sql?

1066


What are the steps to process a single select statement?

942


When multiple after triggers are attached to sql table, how to control the order of execution?

1049


What are binary string data types in ms sql server?

1296