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 nth highest salary

Answer Posted / sharmila shree

SELECT TOP 1 salary FROM
( SELECT DISTINCT TOP 1 salary FROM table_name
ORDER BY salary DESC )
a ORDER BY salary

here 'a' is sub query of salary

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

1031


Is it possible to call a stored procedure within a stored procedure?

930


you accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover? : Sql server administration

1207


How to receive returning result from a query?

1065


Do you know what are the differences between lost updates and uncommitted dependencies?

1031


What is microsoft sql server?

934


How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

1004


What is the difference between commit and rollback?

897


what are the different ways to return the rowcount of a table?

968


How do you set a trace flag in sql server?

1010


What is an execution plan?

1080


What is format parameter in ssrs?

140


What is the maximum row of a size?

970


explain different types of cursors? : Sql server database administration

1045


What is field in algebra?

996