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...

To find second largest salary in Employee table

Answer Posted / zulfikar ali

SELECT MAX(SALARY)
FROM EMPLOYEE
WHERE SALARY NOT IN(SELECT TOP 1 SALARY FROM EMPLOYEE ORDER
BY SALARY DESC)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 3 ways to get a count of the number of records in a table?

1122


How to automatically create a log when an exception is being received into SQL Server?

1361


How to Sync Two SQL Azure Databases?

121


What are different types of collation sensitivity?

1025


Explain the dbcc pintable command when would you use it?

970


What are the new scripting capabilities of ssms? : sql server management studio

1122


Tell me about the approaches which you used to counter the DI problems.

1427


Which data types generate inaccurate results if used with an = or <> comparison in a where clause of a sql statement?

1128


Explain the different types of joins?

1046


what is raid and what are different types of raid configurations? : Sql server database administration

1105


List few advantages of stored procedure.

1026


How do I find my localdb version?

1029


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

2461


What is xdr?

1044


What is use of attribute hierarchy ordered ? : sql server analysis services, ssas

1058