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

without table how to come first record only in oracle?

1847


wat are deployement groups in informatica, how it will be used for developers

1249


Design time, run time. If you don't create parameter what will happen

1422


What are pre and post-session shell commands?

735


To Provide Support For Mainframes Source Data, which Files Are Used As A Source Definitions?

671






What is powercenter on grid?

689


Explain sql transformation in script mode examples in informatica

598


What is a surrogate key?

555


What will be the approach?

577


What is data caches/ index caches?

611


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

548


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

3239


How to differentiate between the active and passive transformations?

621


Write the program through which the records can be updated?

510


What is a filter transformation and why it is an active one?

558