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

can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / dileep.t

If you need the second highest salary only
then following will also work,

select Max(Salary) from TableName
where Salary not in(
Select Max(Salary) from TableName)

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which tools are available to manage SQL Azure databases and servers?

113


how to overcome kernel isssues

1568


What are xml indexes?

894


What are the different types of stored procedures?

1069


Explain in details security in SQL azure?

121


Can you please explain the difference between function and stored procedure?

961


How to name query output columns in ms sql server?

918


How to use clusters?

884


What is the latest version of microsoft sql server?

971


What is difference between cte and view?

858


How are the exceptions handled in sql server programming?

1000


Does partitioning ssd reduce performance?

849


How many types of objects are there?

938


What is full outer join in sql server joins?

986


What is difference between count (*) and count 1?

867