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

Do you know what are pages and extents? : SQL Server Architecture

941


How does normalization work?

865


How to add the custom code in Report?

117


What is blocking?

980


How to set the current database in ms sql server?

1009


What is the benefit of normalization?

1019


What is the difference between a view and a stored procedure?

979


What is failover clustering overview?

1021


What is the command to change the recovery model?

999


What is the difference between TRUNCATE and DROP?

1064


How real and float literal values are rounded?

1095


How to delete duplicate rows in sql server?

1056


How to replace the Query Result 'Null Value' with a text ?

971


How to edit table in sql server 2017?

880


What is meant by indexing files?

984