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 / neeraj sharma

select ename,sal from emp where rownum<=3 order by sal desc

Note:- every table has rownum column but it is hidden by
default you can see it by this
select rownum from your_table_name

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are you getting errors when creating a new odbc dsn?

1166


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

1005


What encryption security is available in sql azure?

99


Difference between report and query parameter.

1023


what data regions are and what are the different data regions?

126


Find columns used in stored procedure?

936


Why do we partition data?

977


What is replace and stuff function in sql server?

997


What is difference between count (*) and count column?

839


What is the purpose of grouping data in a report?

907


What is transact-sql ddl trigger?

1047


Explain what are the restrictions while creating batches in sql server?

1021


Does server sql treat char as a variable-length or fixed-length column?

951


What is the purpose of floor function?

976


what is a schema in sql server 2005? : Sql server database administration

957