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 / preeti chauhan

CREATE TABLE T1(SALARY int, [NAME] varchar(50))
SELECT TOP 1 SALARY FROM (SELECT TOP 2 SALARY FROM T1 ORDER
BY SALARY DESC)T1 ORDER BY SALARY

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we check the sql server version?

1128


What is the difference between SQL notification and SQL invalidation?

1264


Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture

968


How to loop through returning rows?

1091


What are the types of sql server?

1099


Do you know what are the reporting services components?

1020


You are creating an application where users are asked their gender in the gender combo box you have three options: ‘male’ , ‘female’ and ‘i choose not to disclose’ these options are stored in the table as 1, 0 or null which datatype should you use?

1051


What is user defined datatypes and when you should go for them?

1068


How will you optimize a stored procedure optimization?

1116


What is normalization? Describe its different types.

1154


IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do

1873


Why is sql server log file full?

1080


Mention the 3 ways to get a count of the number of records in a table.

1025


What is a view in sql?

1021


Benefits of Stored Procedures?

1040