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
How do I find the database name in oracle?
What is the difference between substr & instr functions?
What is execute immediate in oracle?
How do you tell what your machine name is and what is its IP address?
What are the logical operations?
How to omit columns with default values in insert statement in oracle?
How do I uninstall oracle client from windows?
How to work with data objects interactively?
How to rename an index?
Name the three major set of files on disk that compose a database in Oracle?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
Can we commit inside a function in oracle?
What to do if dba lost the system password?
Explain self joins in oracle?
What are the numeric comparison operations?