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

Differentiate between sessions and batches?

572


How to create or implement slowly changing dimension (SCD) Type 2 Effective Date mapping in informatica/Flagging mapping in informatica/visioning mapping in informatica?

709


How to do unit testing in informatica? How to load data in informatica ?

647


What does reusable transformation mean?

672


What is the use of source qualifier?

670






What are the components of Informatica? And what is the purpose of each?

620


hi real timers . iam waiting for ur reply regarding ETL TESTING

1806


How can we remove the duplicates from flat file source?

577


Tell me about MD5 functions in informatica

523


What is the use of an aggregator cache file?

686


What is parallel processing in informatica?

1029


What is transformation?

659


Write the advantages of partitioning a session?

743


how to create user defined function (udf) in informatica

783


What is the need of etl tools?

609