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

Does view occupy space?

887


How you can find out if an index is useful to the optimizer?

873


what are the new features introduced in sql server 2000? : Sql server database administration

873


How to create stored procedures with parameters in ms sql server?

993


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

884


Explain about unique identifier data type in sql server?

861


What method is used by the Command classes to execute SQL statements that return single values?

1006


How much is a sql server license?

904


How would we use distinct statement? What is its use?

1024


what is raid and what are different types of raid configurations? : Sql server database administration

976


What is difference between oltp and olap?

983


how to trace the traffic hitting a sql server? : Sql server database administration

1773


What is scheduled job and how to create it?

925


Do you know hot add cpu in sql server 2008?

901


what is the difference between count(*) and count(1) ?

1028