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 / selvaraj.v

In SQL Server 2000 Query:
-------------------------

select max(salary) from Employee where salary not in(select
max(salary) from employee)

This Query only selects the 2'nd Higehest Salary in that
table. So, you will try...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is correlated subquery in sql server?

1127


Explain ms sql server reporting services vs crystal reports?

975


How to create a user name in a database?

1103


How to assign null values to variables or columns?

1030


How to create a view using data from another view?

998


what's the difference between delete table and truncate table commands? : Sql server database administration

1041


How to drop an existing schema in ms sql server?

1146


What is "scheduled jobs" or "scheduled tasks"?

1030


how can u get last observation in an unknown dataset ?

2488


How to return the second 5 rows in ms sql server?

1108


Differentiate between delete and truncate.

1114


What do you understand by mirroring?

1046


Can primary key be a foreign key?

1113


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

176


How to provide values to stored procedure parameters in ms sql server?

1101