source : col1 101 101 101 102 102 102 103 103 103
col2 1000 1500 2000 1200 2300 3000 2400 1300 2000
i need target as
col1 101 102 103
col2 1000,1500,2000 1200,2300,3000 2400 1300 2000

Answer Posted / balaganesh

SQ-->SRT-->EXP-->AGG-->TGT

In SRT:
sort the record by col1 (Ascending)

In Exp:
col1
col2

v_col2=iif(v_col1=col1,v_col2||','||col2,col2)
v_maxcount=iif(v_col1=col1,v_maxcount+1,1)
v_col1=col1
o_col1=v_col1
o_col2=v_col2
o_maxcount=v_maxcount

In AGG:
Group by o_col1
MAX(o_maxcount)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1643


What is a dimensional model?

583


how to load rows into fact table in data warehouse

642


How to delete duplicate row using informatica?

611


How to use procedural logic inside infromatica?

636






What happen if you have 3 ports in SQ and 4 ports in SQL override of SQ( provided all ports are in same order and they are connected with proper source and target)? Also what happens when I have 4 ports and will extract 3 values in SQloverride.. What will be the value in 4th port ?

1186


Explain dynamic target flat file name generation in informatica

650


What do you understand by a term domain?

670


what is index?how it can work in informatica

1587


According to his methodology what all you need before you build a datawarehouse

1188


whats the logic to load the lower level of granularity of data to fact table.

1803


Briefly define reusable transformation?

624


What are the different types of transformation available in informatica.

639


What is enterprise data warehousing?

615


tell me 5 session failure in real time how can you solve that in your project?

1632