i want department wise maxmum salary and empolyee name
Answer Posted / abhisudipta
select d.dept_name,e.emp_nm,max(e.sal) as salary
from dept d, emp e
where d.dept_no=e.dept_no and e.emp_nm = (select emp_nm from
emp where sal=(select max(sal) from emp where
dept_no=d.dept_no))
group by d.dept_name,e.emp_nm;
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
What are the different oracle database objects?
Why do we need oracle client?
How much memory your 10g xe server is using?
Explain oracle insert into command?
How to create a new tablespace in oracle?
How to convert a date to char in oracle? Give one example.
How to write an inner join with the where clause in oracle?
What is using clause and give example?
What is a user role in oracle?
When do I need to use a semicolon vs a slash in oracle sql?
What is meant by joins?
What are internal user account in oracle?
Differentiate between pre-select and pre-query?
What is bulk copy or bcp in oracle?
Use of an integrity constraint is better to validate data. Explain