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

I am using an Oracle 8i Database my data contains Clob data. I am using toad version 7.6 i am able to get the data in toad but unable to extract the data in excel.when trying to extract the data into the excel the toad error says out of memory. Can any body please help me to extract the data through the same toad version. Thanks in advance

1846


How to display row numbers with the records?

588


Explain integrity constraint?

644


How to create id with auto_increment on oracle?

547


How to convert a string to a date in oracle database?

542






definition of cluster and non-clustered index?

2479


Explain a data segment?

649


What is oracle instant client?

566


How to write a left outer join with the where clause in oracle?

629


How to drop an existing table in oracle?

592


How to check the oracle tns settings?

574


How to execute a stored program unit?

583


How to write a query with an inner join in oracle?

564


why should i declare foreign key constraint as self relation instead of binary relation in tables ?

1565


How to select some rows from a table in oracle?

598