<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to reuse the same Rows to write the same output twice in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-reuse-the-same-Rows-to-write-the-same-output-twice/m-p/2317517#M87953</link>
    <description>You may use a tHashOutpout to memorize the SELECT result, the reuse it as many times you need with a tHashInput
&lt;BR /&gt;Regards,
&lt;BR /&gt;TRF</description>
    <pubDate>Wed, 18 Jan 2017 14:29:45 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-01-18T14:29:45Z</dc:date>
    <item>
      <title>How to reuse the same Rows to write the same output twice</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-reuse-the-same-Rows-to-write-the-same-output-twice/m-p/2317516#M87952</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm stuck with a tricky trouble. Try to explain as clear as possible.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tPostgresqlInput --&amp;gt; tMap (joining with other source) --&amp;gt; tAggregateRow --&amp;gt; tPostgresqlOutput&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, I have also to aggregate rows extracted by the first component (before the tMap) to obtain a sum (that I cannot obtain after the tMap lookup, of course) and put this sum in the same output flow that I'm writing with the Output component:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tPostgresqlInput --&amp;gt; tMap (joining with other source) --&amp;gt; tAggregateRow --\&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L tReplicate --&amp;gt; tAggregateRow ----------------------------------------&amp;gt; tJoin --&amp;gt; &amp;nbsp;tPostgresqlOutput&lt;BR /&gt;&lt;BR /&gt;(With the diagram abowe I mean flows split initially and join later, with different elaborations but the same aggregations, with a tJoin component).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Talend does not permit me this solution (I'm not able to re-join the two separate flows later, with a tJoin component)&lt;BR /&gt;Why?&lt;BR /&gt;&lt;BR /&gt;The alternat solution, of course, would be extract data twice, with two different tPostgresqlInput (with the same query), managing the two flows in two separate subjob, and writing data with two different Output components (to the same destination), first time in insert, second time in update.&lt;BR /&gt;But this solution force me to extract the same amount of data (tPostgresqlInput) twice, and it is bad.&lt;BR /&gt;&lt;BR /&gt;Any suggestion?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Lorenzo&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-reuse-the-same-Rows-to-write-the-same-output-twice/m-p/2317516#M87952</guid>
      <dc:creator>Lorenzo5</dc:creator>
      <dc:date>2017-01-18T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse the same Rows to write the same output twice</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-reuse-the-same-Rows-to-write-the-same-output-twice/m-p/2317517#M87953</link>
      <description>You may use a tHashOutpout to memorize the SELECT result, the reuse it as many times you need with a tHashInput
&lt;BR /&gt;Regards,
&lt;BR /&gt;TRF</description>
      <pubDate>Wed, 18 Jan 2017 14:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-reuse-the-same-Rows-to-write-the-same-output-twice/m-p/2317517#M87953</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-01-18T14:29:45Z</dc:date>
    </item>
  </channel>
</rss>

