You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
Hi,
I need a solution for my peculiar problem.
Here are my requirements.
* I have a table called items which is the main feed.
* I have two other tables called AT and Notes. for each entry in items, there may or may not be a row in these two tables.
* In the output file, comma or pipe sepearated, the first row needs to be the data from ITEM, the next row should be from AT if available , and the third row should be from Notes if notes available for that item. And then ITEM, AT, Notes.
So, you got it ??
output needs a repetitive set of 3 rows...
sample output could be,
--------------------------
ITEM
AT
AT
NOTE
ITEM
AT
NOTE
ITEM
NOTE
ITEM
ITEM
------------------------
i"ve been searching a solution all over it and couldn't find any... can someone help me please ???
Offline

Try reading from the items table and sending to your output and then to a tFlowToIterate component. Use the tFlowToIterate to store the values from the items tables that are used for joining to the AT and Notes tables. Then from the tFlowToIterate have two iterate links, one to an input component for the AT table and one to an input component for the Notes table. The SQL in the input components should have a where clause using the globalMap variables created by the tFlowToIterate. Each of the input components then has a flow to your output.
Last edited by alevy (2010-07-30 03:21:22)
Offline
Hi Alevy,
Thank you for your response.. I have implemented what you have said, and it works fine.
But the real problem is merging the files.
The output needs to be like
ITEM1
|
└-- (entry from AT, if available for that item1)
|
└--(entry from Notes, if available for that item1)
ITEM2
|
└-- (entry from AT, if available for that item2)
|
└--(entry from Notes, if available for that item2)
and so on..
Offline
Pages: 1