<?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: Generating Row_number as key field for DB load in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generating-Row-number-as-key-field-for-DB-load/m-p/2272331#M49641</link>
    <description>Select the current max value from the dB and store the result into a global variable.&lt;BR /&gt;Then use a numeric.sequence with a start value based on the global variable value + 1.&lt;BR /&gt;No need of tRowGenerator.</description>
    <pubDate>Sat, 28 Mar 2020 20:14:48 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2020-03-28T20:14:48Z</dc:date>
    <item>
      <title>Generating Row_number as key field for DB load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generating-Row-number-as-key-field-for-DB-load/m-p/2272330#M49640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to talend and in the process of learning it. I came across a problem where the DB table has to be loaded with data which doesn't have a key column. I want to add a row_num which would act as the key value. The issue is the Row_num needs to be continuous from the previous run.&lt;/P&gt;&lt;P&gt;I could use the tRow_generator to generate the row_num. But how to configure it to generate values starting from the previously generated Row_num between runs? Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;Run1:&lt;/P&gt;&lt;P&gt;Row_num&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;Run2:&lt;/P&gt;&lt;P&gt;Row_num&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generating-Row-number-as-key-field-for-DB-load/m-p/2272330#M49640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row_number as key field for DB load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generating-Row-number-as-key-field-for-DB-load/m-p/2272331#M49641</link>
      <description>Select the current max value from the dB and store the result into a global variable.&lt;BR /&gt;Then use a numeric.sequence with a start value based on the global variable value + 1.&lt;BR /&gt;No need of tRowGenerator.</description>
      <pubDate>Sat, 28 Mar 2020 20:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generating-Row-number-as-key-field-for-DB-load/m-p/2272331#M49641</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-28T20:14:48Z</dc:date>
    </item>
  </channel>
</rss>

