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 / karan

select empname,sal from empdpt e where 1=(select count(*) from
empdpt where e.sal<sal)

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me something about security and sql azure?

114


How to add additional conditions in SQL?

1022


How to create percentile function?

151


How to verify a login name with sqlcmd tool?

1214


How does the report manager work in SSRS?

148


How to create a simple user defined function in ms sql server?

1015


How many categories of data types used by sql server?

1010


explain different levels of normalization? : Sql server database administration

1001


How to make conditional sum in ssrs?

177


Define union, union all, minus, intersect?

974


How column data types are determined in a view?

956


What is query optimizer in sql server?

1018


Describe triggers features and limitations?

987


Why functions are used in sql server?

957


Comment,Datatypes are unlimited

2057