Description: I have a source table with 3 columns EMPNO, ENAME, LOC. Now I would like to split the source into 2 taget tables based on the primary key EMPNO as one target table contains EMPNO, ENAME and another target table contains EMPNO, LOC as shown below.
MY SOURCE | | TARGET_1 | | TARGET_2 |
SNo | Name | Loc | 100 | Chandu | Hyderabad | 200 | Satish | Chennai | 300 | Siva | Noida | 400 | Srinivas | Bengaluru |
|
| | EmpNo | EName | 100 | Chandu | 200 | Satish | 300 | Siva | 400 | Srinivas |
|
| | EmpNo | EName | 100 | Hyderabad | 200 | Chennai | 300 | Noida | 400 | Bengaluru |
|
|
Solution:
Connect all ports from Source transformation to Aggregate transformation.
Connect EMPNO and ENAME ports to one target table.
And connect EMPNO and LOC ports to another target table.
The final mapping looks like as shown below:
Hi. How aggregate tr will split the data as you mentioned above? i didn get you. I need the explanation.
ReplyDeleteI trid Implementing the same. Its Not WOrking
ReplyDelete