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

Find 2nd Highest salery in emp table

Select* from emp where &n=
select * count from emp where (salery >=emp.salery)


Enter n value 2


These query is correct or not. Tell me any other methods.

Answer Posted / asimananda

SELECT MAX(SAL) FROM EMP WHERE SAL < ( SELECT MAX(SAL) FROM
EMP )

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can u get last observation in an unknown dataset ?

2436


How to find related tables in sql server?

947


How to stop a loop early with break statements in ms sql server?

1020


What are the advantages of policy management?

997


What is role playing dimension with two examples? : sql server analysis services, ssas

1006


What are the difference between clustered and a non-clustered index?

1043


How to download and install microsoft .net framework version 2.0?

1139


As per your opinion what are the five top responsibilities of a dba? : sql server database administration

1137


How can windows applications connect to sql servers via odbc?

1128


What is wrong with sql server client libarary dll, ntwdblib.dll?

1041


List out the differences between global and local temp tables in sql server?

1062


How can you list all the table constraints in a database?

938


Explain in brief how sql server enhances scalability of the database system?

981


What is an identity?

1018


How to rename an existing column with sql server management studio?

999