my source has 2 columns. 1st column data: ABC ABC ABC XYZ
and 2nd column data: 1 2 3 4. And my target should be ABC 1 2
3, XYZ 4

Answers were Sorted based on User's Feedback



my source has 2 columns. 1st column data: ABC ABC ABC XYZ and 2nd column data: 1 2 3 4. And my tar..

Answer / shiva

col1 col2 COL1 COL2
ABC 1 ABC 1,2,3
ABC 2 XYZ 4
ABC 3
XYZ 4

S-SQ-AGG-SORT-TGT

IN AGG TAKE 4 VARIABLE PORTS

1)V_COL1 (in this write) v_cur_col1
2)v_cur_col1 (in this write) col1
3)flag (in this) iff(col1=v_col1,1,0)
4)v_col2 (in this ) decode(flag=1,v_col2||,||col2,col2
5)o_col2 (in this) v_col2 (this is a o/p port)

Is This Answer Correct ?    8 Yes 3 No

my source has 2 columns. 1st column data: ABC ABC ABC XYZ and 2nd column data: 1 2 3 4. And my tar..

Answer / moorthy g

S-->SQ-->EXP-->AGG--->TGT
EXP:
Create Variable port:

res: decode(col1=prev_col1,concat(res,col2), col2)
O_put: res
pre_col1=col1

AGG:
group by col1

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Informatica Interview Questions

why we are using level option in normalizer transformation

1 Answers   TCS, Wells Fargo,


What is transformation?

0 Answers  


Without using any transformations how u can load the data into target?

15 Answers   IBM,


Can you create a flatfile target

3 Answers   ABC,


In a table, 4 person having same salary. How to get Third person record only?

15 Answers  






To achieve the session partition what r the necessary tasks u have to do?

1 Answers  


What are limitations of joiner transformation?

2 Answers   Exilant, TCS,


What is the grain level in DWH? If i have year to day. what is the grain level of DWH from year to day.

1 Answers   Zensar,


What is DR strategy for Informatica project?

0 Answers  


Explain the pipeline partition with real time example?

0 Answers   Informatica,


In What Situations we can use MappingParameters ,Mapping Variables AND Session Parameters in REAL TIME.

0 Answers  


Want to know about Training Centres for Informatica, Cognos and ETL Softwares in Mumbai, India.

27 Answers  


Categories