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
What is the difference between operational data stage (ods) and data warehouse?
Can you explain tagbatch restructure operator?
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?
project Steps,hits, Project level HArd things,Solved methods?
Can you explain repository tables in datastage?
what is the use of materialized view?
What are the important features of datastage?
Differentiate between validated and Compiled in the Datastage?
What are routines in datastage?
Can we use target hash file as a lookup ?
What are the functionalities of link partitioner and link collector?
what are the errors,warnings in datastage
Can you implement SCD2 using join, transformer and funnel stage?
Why do we use exception activity in Datastage?
How do you import and export data into datastage?