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

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


:)

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in staging we are merging the data and remove the inconsistants data that type of situation what u will done and type of functions u can use

1651


Explain the different dimensions.

556


Can we get 1st record through Informatica(without sequence number).

984


How to use procedural logic inside infromatica? If yes how, if now how can we use external procedural logic in informatica?

695


What do think which one is the better joiner or look up?

726






my source is junk data how will u remove that junk data by using unix please any one replay me

3241


What is update strategy transform?

574


what is mean by complex business rule ?

1723


-Which expression we can not use in Maplets?, -Can we join(relate) two dimensions in a schema? -Why and where we use 'sorted input' option?

4982


What are the different types of transformation available in informatica.

638


How to do the error handling of if ur source is flatfiles?

1513


What is fact table? Explain the different kinds of facts.

614


can any one explain me what i have to tell about insurance project in interview,,,,when he asked to tell about ur project

2135


How does a sorter cache works?

569


What is difference between a gateway node and worker node?

625