Write a query to display Which deptno is containing highest
Sal > avg (sum (Sal)) of all deptno;


Avg (sum (Sal)) o f all deptno= 9675
Deptno, sum (Sal)
10 8750
20 10875
30 9400

Answer Posted / moorthy g

select deptno, max(sal) from emp group by deptno
having max(sal)> (select avg(max(sal)) from emp group by
deptno);

Output:

DEPTNO MAX(SAL)
---------- ----------
10 5000

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist the advantages of informatica.

626


What is DR strategy for Informatica project?

696


What is the format of informatica objects in a repository?

596


How can we create index after completion of load process?

594


Under which circumstances, informatica server creates reject files?

589






Is it possible to define a single node as a Gateway node as well as worker node?

652


hi friends ... i have insurance project(informatica),can you please tell me how many table and mappings we need to use?and explain me.. thank you

9164


how to create user defined function (udf) in informatica

781


What does reusable transformation mean?

670


How many transformations can be used in mapplets.

1454


On which transformations you created partitions in your project?

759


What is meant by incremental aggregation?

578


What is the sequence generator transformation in informatica?

611


How can we store previous session logs?

565


Where do we use mapping variables in informatica?

612