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

What is cached report?

150


Does an index slow down updates on indexed columns?

1032


What is the fastest way to permanently delete a 1 million row table named customers?

1322


What is the difference between upgrade and migration in sql server?

1145


Explain what is row_number function?

1081


How to create a new login name in ms sql server?

1103


what are constraints? : Sql server database administration

1124


what type of index will get created after executing the above statement? : Sql server database administration

1026


What is a mixed extent?

1077


How to write a query with an inner join in ms sql server?

1092


how to invoke a trigger on demand? : Sql server database administration

1139


What are the difference between clustered and a non-clustered index?

1087


How do I find the sql server database version?

1049


How do I install sql server?

935


What are the methods used to protect against sql injection attack?

1114