two tables are there
emp(eno,ename,sal,deptno),dept(deptno,dname).how form the
query in deptno,ename,max(sal)

Answer Posted / no_name

select deptno,dname,max(sal) dept_max
from
(select empno, e.deptno, d.dname, e.sal
from emp e,
dept d
where e.deptno = d.deptno)
group by deptno,dname;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of indexes option in exp command.

586


What is a data dictionary and how can it be created?

604


What is object data modeling?

497


What is oracle thin client?

527


What is the difference between primary key and unique key and foreign key in oracle?

542






What is execute immediate in oracle?

539


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

1822


How to bring a tablespace offline?

531


What is BBED in Oracle?

675


What is control file used for?

594


What is merge statement used for?

561


What is the exact use of Collections?

1671


What is the difference between Delete, Truncate and Drop in Oracle?

595


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2444


What are transaction isolation levels supported by oracle?

568