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

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between a database and data warehouse?

652


How do you convert single row from source into three rows into target?

605


complex mapping ur project u r invlve can u explain and give real time example give me ?

1840


Define the various join types of joiner transformation?

561


What is the command used to run a batch?

578






What are the features of complex mapping?

645


What are the informatica performance improvement tips

615


I have done MBA in 2008. i got job as business analyst in 2008 january through consultany. but after 3 months they are giving training Informatica developer. now iam continuing this job. my question is when iam going to interview HR people ask me many times like this " YOU ARE MBA GRADUATE. HOW YOU ARE SELECT THIS POSTION. IAM EXPLAINING WHAT I HAVE MENTION ABOVE". PLEASE TELL HOW IAM TELLING THIS QUESTION ANSWER.

1629


What is parallel processing in informatica?

1029


How can you increase the performance in joiner transformation?

710


What are active and passive transformations?

652


What are the measure objects?

662


What are the types of presistent cache in look up tr.

1549


Write the different tools in the workflow manager?

575


Some flat files are there, out of these having some duplicate. How do you eliminate duplicate files while loading into targets?

1322