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

In which transformation you cannot drag ports into it?

776


What is native users?

723


Is there any target staging area in informatica not staging area

2125


What are the basic requirements to join two sources in a source qualifier transformation using default join?

609


If I have 10 flat files with same name abc.txt files with different timestamps as source I need to load them in tgt table oracle. in between job execution fails and rows are not loaded into tgt. how can I make them load in that target even if my job fails?

1031






What is substr in informatica?

661


What is option by which we can run all the sessions in a batch simultaneously?

665


What is the meaning of up gradation of repository?

1387


How big was your fact table

1316


Differentiate between Load Manager and DTM?

1663


explain any diffcult scenario that u have faced in your experience... or explain any complex maping u have developed?

1705


What is pmcmd command?

675


My source is delimited flat file Flat file data is H|Date D1|ravi|bangalore D2|raju|pune T|4 The data will be send to target if the fallowing two conditions satisfied 1.The first row Date column is equal to SYSDATE 2.Last record second port equal to number of records. How to achieve?

5572


Differentiate between router and filter transformation?

613


What is the command used to run a batch?

577