i have a scenario in which i/p columns areID,salary with
1,1000 2,2000 and 3,3000 i need an extra column in the o/p
named avg(salary)how can i get it?

Answers were Sorted based on User's Feedback



i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / sid

source->aggregate(with group key-ID,Avg(salary))-->Target

Is This Answer Correct ?    5 Yes 1 No

i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / subhash

source -> Transforemer(add column DUMMY and give value 1)
==> 2links,
1st link(with 1 hard coded value) to Copy,
1,1000,1
2,2000,1
3,3000,1
2nd Link to Join,
1,1000
2,2000
3,3000

1st linkcopy -> aggregate (Group Key-->DUMMY, take avg)--
>Join
1,2000(AVG salary)
->Join --> target
1,1000,2000
2,2000,2000
3,3000,2000

Is This Answer Correct ?    2 Yes 1 No

i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / ramakrishna

SRC-aggregator-tgt

In the aggregator take the avg

Is This Answer Correct ?    0 Yes 0 No

i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / sai

source -> Transforemer(add column and give value 1) ->
copy -> aggregate (take sum)
->Join -> tx -> target

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Data Stage Interview Questions

How you Remove the Dataset in Unix?

5 Answers  


my source seq file have col1 1 2 3 4 5 6 7 8 9 i have 4 targets t1 t2 t3 t4 1 2 3 4 5 6 7 8 9 like this how we can get?

10 Answers   Polaris,


Describe the architecture of datastage?

0 Answers  


which unix commands mostly used in datastage

3 Answers   HSBC,


WHAT ARE PERFORMANACE SETTINGS YOU HAVE IMPLEMENTES IN YOUR PROJECT?

2 Answers   GE,






How to display errors in datastage?

1 Answers   TCS,


Does datastage support slowly changing dimensions ?

0 Answers  


i/p 1,a,1000 2,b,2000 3,c,3000 i want to get o/p as o/p 1,a,3000 2,b,4000 3,c,5000 how it can be done on using datastage?

5 Answers   HSBC,


I/P --- ID Value 1 AB 2 ABC 3 ADE 4 A O/p --- ID Value 1 A 1 B 2 A 2 B 2 C 3 A 3 D 3 E 4 A

3 Answers   IBM,


How can you write parallel routines in datastage PX?

0 Answers  


if 3 table having different columes. like first table having 4 columns , second table having 3 columns and third table having 2 columns then how to capture the data by using funnel stage in parallel jobs...srinu.thadi

17 Answers   IBM, TCS,


Please explain me the difference between 3 types of slowly changing dimension in datawarehousing?

3 Answers   TCS,


Categories