Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


my soure table is emp having columns sal,deptno in the
deptno 10,20,30deptno row are there expected out
put is min(sal) of 10th deptno,max(sal) of 20th
deptno,mean(sal) of 30th deptno using aggregation stage

Answers were Sorted based on User's Feedback



my soure table is emp having columns sal,deptno in the deptno 10,20,30deptno row are there expected..

Answer / farzana kalluri

Take source--->copy.from copy take 3 links for 3
aggregators and then filter from filter take 3 links for 3
targets..In filter mention deptno...
1.key=deptno=10
In agg column for calculation=sal
options: max(sal)
2.key=deptno=20
column for calculation=sal
options:min(sal)
3.key=deptno=30
column for calculation=sal
options:mean(sal)

Is This Answer Correct ?    6 Yes 0 No

my soure table is emp having columns sal,deptno in the deptno 10,20,30deptno row are there expected..

Answer / reddymkl.dwh

Where=Deptno=10 min(sal)
----------------->Agg1 --------> O/p1
Where=Deptno=20 Max(sal)
Seq--->Filter----------------->Agg2 --------->O/p2
Where=Deptno=30 Mean(Sal)
----------------->Agg3 ---------->O/p3

Agg:
Agg type=Calculation

Plz correct me if am wrong...

Is This Answer Correct ?    0 Yes 0 No

my soure table is emp having columns sal,deptno in the deptno 10,20,30deptno row are there expected..

Answer / percy

use aggregator stage in that perform first keycolumn as 10
and give calculation for sal as min sal
next take as 20 as key column maxsal for calculation same
as 30th dept

Is This Answer Correct ?    1 Yes 2 No

my soure table is emp having columns sal,deptno in the deptno 10,20,30deptno row are there expected..

Answer / varaprasad

hi preti,
dot post wrong answers, so many were depending on allinterviews so , if you correct then post it
so
seq---->agg --->filter deptno=10---targer ,
.....20
.....30
good luck ,
vara

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Data Stage Interview Questions

How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

0 Answers   Reliance,


i have a scenario like two columns(Empno, Ename) in that duplicate records are there, so my question is how to get second duplicate record in datastage.

4 Answers   Wipro,


What r the existing server jobs in parallalism?

0 Answers   ITC Infotech,


Give example for FACTLESS FACT TABLE in real-time scenario.

4 Answers   TCS,


How can we do null handling in sequential files?

3 Answers   Reliance,


What could be a data source system?

0 Answers  


Unix Qn asked in datastage interview: I have diff type(.txt, .tmp, .bat etc) of file in 4 diff directories, I want move all '.txt' file from 4 directories to other folder. And need to delete all the files except which are created TODAY?

2 Answers   TCS,


what is the difference between the active datawarehouse and datawarehouse

1 Answers   TCS,


How can we run same job in 1 day 2 times

7 Answers   IBM,


What is the use of datastage designer?

0 Answers  


What is size of a transaction and an array means in a datastage?

0 Answers  


Difference between server jobs & parallel jobs?

0 Answers  


Categories