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

What is the difference between createstatement and preparedstatement?

905


What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?

135


What is the difference between a function and a stored procedure?

1027


What command do we use to rename a database?

1031


How to delete duplicate rows from table except one?

949


What do you mean by cardinality?

867


What is an expensive query?

896


How to convert numeric expression data types by assignment operations?

1019


What is the purpose of forms?

918


What do you mean by authentication modes in sql server?

1047


Distinguish between commit and rollback?

910


What are transactions in sql?

1004


Which data type columns are the best candidates for full-text indexing?

933


where can you add custom error messages to sql server? : Sql server administration

1063


What is the command to change the recovery model?

1014