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 / darshan shah

select top 1 * from (select top 2 * from emp order by sal
desc ) a order by sal asc



Plz try this.

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 conditional split?

1089


Explain alternate key, candidate key and composite key in sql server?

918


Can we use max in where clause?

939


what is a sub-report?

142


What does select 1 mean?

937


Does index speed up select statements?

1017


Can I run multiple instances of sql server 2000 at the same time on one computer?

1081


Write the SQL query to drop, truncate and delete table.

980


You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?

1008


What is the difference between writing data to mirrored drives versus raid5 drives

942


what method you can use to reduce the overhead of Reporting Services data sources?

258


How do I view a stored procedure in sql server query?

936


What is cte (common table expression)?

1041


Explain what are the authentication modes in sql server?

1026


What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration

990