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

How to read 2nd highest sal from EMP table?

Answer Posted / gali kondareddy

SELECT * FROM EMP WHERE SAL =(SELECT MIN(SAL) FROM EMP WHERE SAL IN (SELECT TOP 2 SAL FROM EMP ORDER BY SAL DESC))

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 dbcc? Give few examples.

955


What is oltp (online transaction processing)?

953


How to receive output values from stored procedures?

1057


Tell me what are the essential components of sql server service broker?

887


How real and float literal values are rounded?

1096


what is an extended stored procedure? : Sql server database administration

992


Can you force a query to use a specific index?

889


What is difference between temp table and cte?

963


How optimize sql query with multiple joins in sql server?

829


How to generate random numbers with the rand() function in ms sql server?

1050


What is table level trigger?

952


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?

947


What is 'Join' and explain its various types.

1067


What are points to remember while using the fillfactor argument?

909


What is 2nf normalization?

970