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

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

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is primary and backup node?

694


Write the unconnected lookup syntax?

656


What is the difference between router and filter?

647


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

1590


What is meant by target load plan?

556






What do you mean by enterprise data warehousing?

644


What is the difference between Active and Passive transformation?

633


Give some information on report bursting and how to do it in bca as I have to split the report and send different reports to different people?

552


What are multi-group transformations?

564


What are the different types of olap? Give an example?

562


What is the meaning of up gradation of repository?

1387


What are Dimensional table?

617


Explain sql transformation in script mode examples in informatica

605


What is the reusable transformation?

627


What is the need of etl tools?

609