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

Can group functions be mixed with non-group selection fields in ms sql server?

944


What are the different types of locks in the database?

925


Which tcp/ip port does sql server run on? How can it be changed?

1044


When columns are added to existing tables, what do they initially contain?

1036


tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

1024


What is format parameter in ssrs?

146


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

1007


What is sparse columns of sql server 2008?

1057


How do I make a resultset scrollable?

966


How do you delete a data source?

1012


Once setting replication, is it potential to own a publisher as sixty four bit sql server and distributor or subscribers as a thirty two bit sql server?

1012


you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation

947


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

967


What is the data tier application?

169


Explain syntax for viewing, dropping and disabling triggers?

955