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 / aashish

select department_ID, sum(salary) from emp group by department_ID having sum(salary) > (select avg(sum(salary)) from emp group by department_ID);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the shared cache and re-cache?

608


What is a filter transformation?

563


Differences between version 7.x and 8.x.

1415


Mine is Insurance Domain, So interviewer asked about terms like underwriting, disbursement amt, Reinsurance

1590


What are session parameters ? How do you set them?

1375






Design a mapping to load a target table with the following values from the above source?

870


Difference between Target-based loading and constraint-based loading?

549


What is aggregator transformation in informatica?

539


Explain sessions?

602


How to join three sources using joiner? Explain though mapping flow.

693


Describe data concatenation?

568


What are the performance considerations when working with aggregator transformation?

674


What are the main features of Oracle 8i with context to datawarehouse?

1678


How to update or delete the rows in a target, which do not have key fields?

651


What is meant by lookup transformation?

608