Merge or Logical Thinking
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
Merge or Logical Thinking
All,
I am working on the below requirement.
Table Structure:
Market Model Industry Registration
File 1:
Market Model Ind
MK1 M1 5
MK2 M2 15
File 2:
Market Model Reg
MK1 M1 50
MK2 M2 150
I have to merge tthese 2 files and store it in the above table.
I have tried merge and just got 0 in the Industry column.
Expected Output:
MK1 M1 5 50
MK2 M2 15 150
is Merge stage is the right option for this?
Inputs are welcome!
I am working on the below requirement.
Table Structure:
Market Model Industry Registration
File 1:
Market Model Ind
MK1 M1 5
MK2 M2 15
File 2:
Market Model Reg
MK1 M1 50
MK2 M2 150
I have to merge tthese 2 files and store it in the above table.
I have tried merge and just got 0 in the Industry column.
Expected Output:
MK1 M1 5 50
MK2 M2 15 150
is Merge stage is the right option for this?
Inputs are welcome!
Karthik
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It's still a join. Between source and join generate a column that identifies the source. Perform the join. Downstream of the join use a Transformer stage to generate two output links, and bring those together using a Funnel stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Generate a constant that identifies one source as "A" and the other as "B". This will be used downstream to indicate which output column to populate in the Transformer stage.
A Column Generator stage would be ideal for this purpose.
A Column Generator stage would be ideal for this purpose.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.