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

write the query for find the top 2 highest salary in sql
server

Answer Posted / uday

select * from Emp e where 1=(select count(Distinct
d.esal)from emp d where d.esal>e.esal)

i am sure that it should work.


Any thing wrong plz inform me

Is This Answer Correct ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization? Describe its different types.

1103


What gets stored inside msdb database?

1244


What is the full meaning of dml?

948


Does index speed up select statements?

1010


What is nolock?

976


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

936


How you trouble shoot when any job fails

1932


What are “phantom rows”?

1655


What is the difference between a stored procedure and a user defined function?

1020


Explain what is meant by replication of database?

1027


what is denormalization? : Sql server database administration

921


Can you explain what are various ways to enhance the ssrs report?

1000


What is the boxing and unboxing concept in .net?

913


How to create a testing table with test data in ms sql server?

1081


What are the various editions of sql server 2017 that are available in the market?

890