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...

how will I find the first 5 highest salaried employees in
each dept in oracle.

Answer Posted / kanha

Select E1.* From(Select Ename,Deptno,Sal,
Dense_Rank()over
(
Partition By Deptno Order By Sal Desc
)"Top Sal"
From Emp)E1
Where "Top Sal"<=5 Order By Deptno,Sal Desc;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can objects of the same schema reside in different tablespace?

1023


How does Oracle guarantee data integrity of data changes?

2356


How many types of tables supported by oracle?

1037


How to convert characters to times in oracle?

984


How to pass a parameter to a cursor in oracle?

1126


How to use windows user to connect to the server?

958


Difference between oracle's plus (+) notation and ansi join notation?

1056


What privilege is needed for a user to connect to oracle server?

963


Explain parameter file in oracle.

987


For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?

1988


Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.

2278


What is a tns service name?

967


How to find out what oracle odbc drivers are installed?

998


How do I limit the number of rows returned by an oracle query after ordering?

1122


What do you understand by a database object?

1006