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

how to design mapping half of source table records into one target and remaining half into another target

8 Answers   ABC,


Explain direct and indirect flat file loading (source file type) - informatica

0 Answers   Informatica,


What is a rank transform?

0 Answers  


Discuss the advantages & Disadvantages of star & snowflake schema?

5 Answers  


When the informatica server marks that a batch is failed?

2 Answers  






why union is active transformation?

4 Answers   IBM,


What is sql query override? When did u use sql query override?

1 Answers   TCS,


how do u tune queries?

1 Answers  


Limitation of REPLACESTR. Is there any character limitation to it.

1 Answers   CTS,


who to split dimentions into sub dimention

3 Answers   Wipro,


What is a passive transformation?

0 Answers   Informatica,


Can any one give me a real time example for FACT TABLE & DIMENSIONAL TABLE?

2 Answers  


Categories