i want department wise maxmum salary and empolyee name

Answer Posted / ajaikumar

Select e.ename, d.deptname, e.sal
from emp e, dept d
where
e.deptno = d.deptno
and
e.sal IN (
select max(sal) from emp
group by deptno
)

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is catalog in Oracle?

641


What is the Tune Query

1837


What happens in oracle commit?

561


can anyody please send me the dump for Oracle 10g certifications for DBA path?

1684


What is the relation of a user account and a schema?

611






How to write date and time interval literals in oracle?

565


What happens if the update subquery returns multiple rows?

604


Which is faster join or subquery in oracle?

531


State the various uses of dbcc command?

544


What is the meaning of recursive hints in oracle?

528


What is execute immediate in oracle?

543


Give the advantages and disadvantages of clusters.

570


Give the various exception types.

540


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

1642


What is an oracle user role?

564