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 is oracle and what are its different editions?
How to define a specific record type?
What is ordinary table in oracle?
Is a rollback possible to any savepoint?
How to unlock the sample user account in oracle?
HI ALL, CAN ANYONE TELL ME THE DIFFERENCES BETWEEN SQL CLUSTURS,MSQL CLUSTERS,ORACLE CLUSTERS.......THANKS IN ADVANCE
How to apply filtering criteria at group level in oracle?
State all possible different index configurations a table can possibly have?
How to turn on or off recycle bin for the session?
What is truncate oracle?
What are the advantages of oracle 12c?
What is PL/SQL ?
What are the common oracle dba tasks?
What is the minimum client footprint required to connect c# to an oracle database?
How to get the Installed Oracle Version Information ?