Source Like
department_no, employee_name
----------------------------
20, R
10, A
10, D
20, P
10, B
10, C
20, Q
20, S

and Output should be like this

department_no, employee_list
--------------------------------
10, A
10, A,B
10, A,B,C
10, A,B,C,D
20, A,B,C,D,P
20, A,B,C,D,P,Q
20, A,B,C,D,P,Q,R
20, A,B,C,D,P,Q,R,S

Answer Posted / subhash

small modification to the above ans:
SRC---->Transformer--->TGT
we do the 'HASH' partitioning on Dept_No.

SetNull value to the Stage variable----->SV_List

In the transformer stage variables:
SV_List :',' : Employee_Name ----->SV_List (Concatenating Employee
Names)

In the Column Derivation:
TRIM(SV_list, ',' , 'L')------->Employee_Name

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between operational data stage (ods) and data warehouse?

967


Can you explain tagbatch restructure operator?

937


if i have two tables table1 table2 1a 1a,b,c,d 1b 2a,b,c,d,e 1c 1d 2a 2b 2c 2d 2e how can i get data as same as in tables? how can i implement scd typ1 and type2 in both server and in parallel? field1 field2 field3 suresh , 10,324 , 355 , 1234 ram , 23,456 , 450 , 456 balu ,40,346,23 , 275, 5678 how to remove the duplicate rows,inthe fields?

1943


project Steps,hits, Project level HArd things,Solved methods?

1830


Can you explain repository tables in datastage?

1145


what is the use of materialized view?

1209


What are the important features of datastage?

838


Differentiate between validated and Compiled in the Datastage?

906


What are routines in datastage?

1070


Can we use target hash file as a lookup ?

3050


What are the functionalities of link partitioner and link collector?

792


what are the errors,warnings in datastage

2394


Can you implement SCD2 using join, transformer and funnel stage?

1318


Why do we use exception activity in Datastage?

1007


How do you import and export data into datastage?

962