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

select * from emp a where sal>(select avg(sal) from emp b
where a.deptno=b.deptno)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please tell me which institute is the best to study Informatica and asp.net in chennai Also please send me the latest interview questions in asp.net,c# and sql server to my id ramtryin@gmail.com

1584


Mention some types of transformation?

602


What is informatica?

675


Define Pmrep command?

631


is there any way to read the ms excel datas directly into informatica?like is there any possibilities to take excel file as target?

619






Hi, I want to change date type char value integer value? I tried alter table tab_name modify (newcolumn newdatetype). But The columns have 10 million values(char type) so I want to load now numeric data. How it is possible? Old Values New Value(I want to load numeric data but the old value should be there in the column) Y 1 N 0 ERROR at line 1: ORA-01439: column to be modified must be empty to change datatype Please help on this. Thanks, GM

3442


What are connected or unconnected transformations?

626


What is olap (on-line analytical processing?

637


What is an Integration service in Informatica?

699


I have three same source structure tables. But, I want to load into single target table. How do I do this? Explain in detail through mapping flow.

769


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

689


What can we do to improve the performance of informatica aggregator transformation?

614


explain abt ur project architecture?

1758


Target increases every day even though no new record was inserted

1103


How can we use batches?

600