I have the source like
col1 col2
a l
b p
a m
a n
b q
x y
How to get the target data like below
col1 col2
a l,m,n
b p,q
x y

Answers were Sorted based on User's Feedback



I have the source like col1 col2 a l b p a m a n b q x y How to get the t..

Answer / venky

src->sorter->exp->agg->tgt

sorter:-

select col1 key as sorter

exp:-

var1=iff(var2=col1,var1||','||col2,col2)
var2=col1
output_port=var1

agg;-

select group by col1

tgt:-

connect to target

Is This Answer Correct ?    5 Yes 4 No

I have the source like col1 col2 a l b p a m a n b q x y How to get the t..

Answer / hanan

src->exp->agg->tgt

src:-

In sql query write order by col1

exp:-

col1->
col2->
var_col2=iif(col1=var_col1,var_col2||','||col2)
var_col1=col1
output_port=var_col2

agg;-

select group by col1

tgt:-

connect to target

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Informatica Interview Questions

Explain the different kinds of facts.

0 Answers  


What are the designer tools for creating tranformations?

1 Answers   Informatica,


Can anyone guide me the steps to install informatica PC 8.5.1 with database as oracle

1 Answers  


what is mystery dimension?

1 Answers  


what is the difference between copy object import objects using repositery manager which one is best

1 Answers   TCS,






How can u work with remote database in informatica?did you work directly by using remote connections?

2 Answers  


explain different types of modeling.

2 Answers  


What is the difference between stop and abort in informatica

0 Answers   Informatica,


How to join a Flat and Relational Source without using (Joiner, Update and Lookup ) transformations... is it possible? if yes i would like to know how?

10 Answers   Wipro,


What is a code page in Informatica

3 Answers   American Express, Cognizant, Deloitte,


Hi I'm new in Informatica. Can you show me a mapping sample on how to piviot the records? Thanks Robin

1 Answers  


How you know when to use a static cache and dynamic cache in lookup transformation?

0 Answers  


Categories