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 / ranjeet kumar shrivastava

select * from tbl_htl_cntry e where 2>=(select
count(distinct salary) from tbl_htl_cntry where
e.salary<=salary)

it is aslo working syntax.
ranjeetvasu@rediffmail.com

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Normalization and De-normalization?

1040


What is de-normalization in sql database administration? Give examples?

941


How to delete a database in ms sql server?

1143


What is for xml in sql server?

995


Define self join in sql server joins?

913


What is the minimum recommended amount of ram for sql server 2012 enterprise?

897


What is cached report?

139


What is the purpose of self join?

929


Would you store your query in a ssrs report or a database server? State the reason why?

150


Do you know what are the properties of the relational tables?

994


What is sql server transaction log file?

1003


What is user-defined scalar function?

921


What are the differences between ms sql server & oracle?

1016


How to resolve the orphan use problem? : sql server security

963


What are the extra roles available in msdb? : sql server security

1094