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
How to assign values to data fields in record variables?
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com
Difference between pre-select and pre-query
How to assign data of the deleted row to variables?
Where are the settings stored for each instance in oracle?
How to run create database statement again?
How to grant create session privilege to a user in oracle?
How to define an explicit cursor in oracle?
How to assign query results to variables?
How to define an oracle cursor variable?
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?
What are nested tables?
What is redo log?
Can we connect to ORACLE db using Windows Authentication?
How many anonymous blocks can be defined?