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 / pawan

Select DISTINCT TOP 5 salary from emp_table1
UNION ALL
Select DISTINCT TOP 5 salary from emp_table2

for more details about UNION and UNION ALL check this: http://www.w3schools.com/sql/sql_union.asp

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why packages are used in oracle?

1119


WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?

2252


Explain the use of rows option in exp command.

1149


What is the order of defining local variables and sub procedures/functions?

1114


What is a user role in oracle?

1186


I have a parent program and a child program. I want to write a statement in Exception Block of the parent program so that when the statement in the exception block is executed, the control goes to the next statement in the parent block bypassing the child block.How do i do that?

2505


What is pragma autonomous transaction in oracle?

1125


How to check the oracle tns settings?

1090


What is tns service name?

1180


What is a Garbage Collection? and what is full recursive Garbage collection?

2958


6. Display the client name and order date for all orders using the traditional method.

2364


How does Oracle guarantee data integrity of data changes?

2459


What is the relation of a user account and a schema?

1176


What is backup in Oracle?

1079


21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.

2170