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

Do you know exporting and importing utility?

1045


What are the types of subscriptions in SQL Server replication?

1041


What is an execution plan?

1155


What is the datatype of rowid?

928


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1684


How to declare a cursor with "declare ... Cursor" in ms sql server?

1049


According to you what goes into making the best database administrator? : sql server database administration

980


Define constraints and give an example of their use?

1041


Can a cursor be updated? If yes, how you can protect which columns are updated?

1112


What are the types of indexes?

1085


What is user defined stored procedures?

948


Mention the different types of replication in sql server.

1027


Explain different types of index?

1064


what are the different types of replication you can set up in sql server? : Sql server database administration

1028


What is a natural primary key?

1052