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

wat wil hapn if we give the both read and deny read permission to user?

2151


how to use DTS package in 2000,2005,2008 in sql server

1904


Is it possible to have clustered index on separate drive from original table location?

1018


Is sql different from sql server?

1165


What is user-defined functions? What are the types of user-defined functions that can be created?

1085


Can you use order by when defining a view?

1022


Difference between group by clause and having clause in SQL?

1028


What is query and its types?

958


What are the commands used in DCL?

1082


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

1078


What is the maximum size of a row in sql server?

1008


plss anybody specify tha constrian management system in dbms

2208


What is always encrypted?

1056


Explain indexed views?

1031


how would you improve etl (extract, transform, load) throughput?

1076