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 does null mean?

989


What kind of problems occurs if we do not implement proper locking strategy?

1404


how do you test proper tcp/ip configuration windows machine? : Sql server database administration

1064


how many no of arguments can be passed in procedures and functions

5566


What are cascading parameters in ssrs reports?

231


what is the system function to get current user's user id? : Sql server database administration

1005


When multiple after triggers are attached to sql table, how to control the order of execution?

1049


What keyword you will use to get schema appended to the result set of a ‘for xml’ query?

1023


What is the difference between locking and multi-versioning?

990


Which sql server table is used to hold the stored procedure scripts?

1062


What is DCL?

1053


What are translations and its use? : sql server analysis services, ssas

1040


What is application role in sql server database security? : sql server security

1058


What is a derived table?

929


How do I create a stored procedure in dbml?

1009