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

What is the cumulative sum and moving sum?

756


What is the difference between stop and abort in informatica

663


What are the steps involved in the migration from older version to newer version of Informatica Server?

1578


Which transformation is needed while using the Cobol sources as source definitions?

727


What is a dimensional model?

583






Can we use the mapping parameters or variables created in one mapping into any other reusable transformation?

809


Explian the Process of deployment groups in informatica

657


write sql query vertical to horiozontal following table id name 1 100 2 dinesh 3 india 1 101 2 suresh 3 india 1 103 2 prakesh 3 usa i want output like id name country 100 dinesh india 101 suresh india 103 prakesh usa

2066


How are indexes created after completing the load process?

987


What are the validations that you can perform in oracle and in informatica ? Advance Thanks

1656


How to go to the older version for a mapping?

604


what is Active lock explain

2369


hi friends .i designed mapping in windows but i want to run mapping in linux.should i install the server components in linux?

1529


How to implement security measures using repository manager?

606


Mention few power centre client applications with their basic purpose?

536