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 estimate disk space needed for an export job?
what is the dual table in oracle?
What happens if you use a wrong connect identifier?
Explain parameter file in oracle.
How to create id with auto_increment on oracle?
How to check your oracle database 10g xe installation?
How do you store pictures in a database?
How to connect to oracle using service name instead of sid?
How do I know if oracle is installed on windows?
How to call a sub procedure?
How many types of tables supported by oracle?
What is Undo Management Advisor in Oracle?
What is the difference between "as" and "is" in an oracle stored procedure?
Difference between oracle's plus (+) notation and ansi join notation?
How to create a table index?