Description:Lets assume I have two source files as shown below:
| SOURCE 1 | | SOURCE 2 |
| EmpNo | Name | | 100 | Sivan | | 200 | Uday | | 300 | Chandu | | 400 | Satish |
|
| | | Sal | Location | | 2000 | Noida | | 3000 | Banglore | | 1800 | Hyderabad | | 1500 | Chennai |
|
|
I would like to load the target a shown below:
| SNo | Name | Sal | Location |
| 100 | Sivan | 2000 | Noida |
| 200 | Uday | 3000 | Banglore |
| 300 | Chandu | 1800 | Hyderabad |
| 400 | Satish | 1500 | Chennai |
Solution:
- Drag Source1, Source2, Target tables.
- Create a Expression t/f and connect SQ_Sorce1 to Expression t/f.
- Create a variable port say v_Dummy and assign default value as 1.
- Create a Expression t/f and connect SQ_Sorce2 to Expression t/f.
- Create a variable port say v_Dummy (with same name and data type used in previous pipeline) and assign default value as 1.
- Join two piplines to a Joiner t/f. The Joinner condition v_dummy=v_dummy.
- Connect all ports to the target.
Output would be 16 records not 4
ReplyDelete