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
What are the restrictions in a oracle read only transaction?
Is insert autocommit in oracle?
Typically, where is the conventional directory structure chosen for Oracle binaries to reside?
What is analyze command used for?
What is the difference between count (*), count (expression), count (distinct expression)?
What is the difference between a primary key & a unique key?
How to use in conditions in oracle?
Point the difference between translate and replace?
How to display row numbers with the records?
What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.
What types of joins are used in writing subqueries?
How do I uninstall oracle client from windows?
In Oracle Applications We are Using Sub Ledger Accounting. When we Transfer the Data all modules (AP,AR,CE,FA) to SLA We done Some customizations? What are They??
Compare and contrast between sql and sql server and explain its various functions?
How to filter out duplications in the returning rows using oracle?