<?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 Iterative Insert in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Insert/m-p/2352184#M118613</link>
    <description>&lt;P&gt;Let’s say I have more&amp;nbsp; than 100&amp;nbsp; records in my source table and I have 3 destination tables A,B,C. I have to insert first 1 to 10 records in A then 11 to 20 in B and 21 to 30 in C.Then again from 31 to 40 in A, 41 to 50 in B and 51 to 60 in C……So on up to last record. How can i do this in talend ?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 12:12:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-30T12:12:08Z</dc:date>
    <item>
      <title>Iterative Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Insert/m-p/2352184#M118613</link>
      <description>&lt;P&gt;Let’s say I have more&amp;nbsp; than 100&amp;nbsp; records in my source table and I have 3 destination tables A,B,C. I have to insert first 1 to 10 records in A then 11 to 20 in B and 21 to 30 in C.Then again from 31 to 40 in A, 41 to 50 in B and 51 to 60 in C……So on up to last record. How can i do this in talend ?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 12:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Insert/m-p/2352184#M118613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T12:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Insert/m-p/2352185#M118614</link>
      <description>&lt;P&gt;Maybe I would do that this way.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in a tmap component with a numeric sequence like your other post, I would create three outputs, toTableA, toTableB and toTableC and I would put in each where condition an operation like rownumber div 10, and then the result mod 3, this will give you a number between 0 and 2. If it's 0 then toTableA, if it's 1 toTableB and if its 2 toTableC so you could have in the toTableA output something like that: (rownumber / 10)%3 = 0 ,&amp;nbsp;&lt;SPAN&gt;in the toTableB output something like that: (rownumber / 10)%3 =&amp;nbsp;1 and&amp;nbsp;in the toTableC output something like that: (rownumber / 10)%3 =&amp;nbsp;2&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If there's more than 100 rows, then you'd have to div 10 until the result is less than 10&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 12:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Insert/m-p/2352185#M118614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T12:53:33Z</dc:date>
    </item>
  </channel>
</rss>

