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

what is memory-optimized nonclustered indexes

1064


How do you send email on SQL Server?

1117


When do you think a developer should use sql server-based cursors?

1104


What are different types of database indexes?

1168


How do I port a number to sql server?

1096


What are different types of data sources?

1084


How do I get to sql server configuration manager?

1062


What are a database and a data warehouse?

1073


List few advantages of stored procedure.

1026


How to assign new column names in a view?

960


what are cursors? : Sql server database administration

1105


What do you mean by data integrity?

1128


Why we use trigger in sql server with example?

1014


Explain what is sql server english query?

1109


Define views.

1071