<?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: About incremental loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/About-incremental-loading/m-p/389954#M145516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Izq_isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understand your script, it already works per your requirement.&lt;/P&gt;&lt;P&gt;- in QV)_table you're only loading the &lt;STRONG&gt;new &lt;/STRONG&gt;records, where currentDate (getdate()) is the value for insertDate&lt;/P&gt;&lt;P&gt;- in your concattenate-Load statement, you're loading the previous loaded records (with the insertDate they got at the moment they were loaded), and only the concttenated records will have the insertDate of getDate()/currentDatetime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I'm missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also write about &lt;EM&gt;"insertDate will be changing when the row is updated":&lt;/EM&gt; in this script there is no factility for "record-updates": it just inserts new ones (and checks on the primary key). Is this the thing you need to change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2012 10:14:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-08T10:14:22Z</dc:date>
    <item>
      <title>About incremental loading</title>
      <link>https://community.qlik.com/t5/QlikView/About-incremental-loading/m-p/389953#M145515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following script to do the incremental loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;&lt;SPAN style="font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;SQL SELECT PrimaryKey, X, getdate() as InsertDate FROM DB_TABLE&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;Concatenate LOAD PrimaryKey, X, InsertDate FROM File.QVD&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;WHERE NOT Exists(PrimaryKey);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;You can see that, The InsertDate will be always changing when the row is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;What I want is keep the InsertDate static even though other columns are updated, that mean the InsertDate is the initial insert date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;How to finish it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 09:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-incremental-loading/m-p/389953#M145515</guid>
      <dc:creator />
      <dc:date>2012-10-08T09:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: About incremental loading</title>
      <link>https://community.qlik.com/t5/QlikView/About-incremental-loading/m-p/389954#M145516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Izq_isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understand your script, it already works per your requirement.&lt;/P&gt;&lt;P&gt;- in QV)_table you're only loading the &lt;STRONG&gt;new &lt;/STRONG&gt;records, where currentDate (getdate()) is the value for insertDate&lt;/P&gt;&lt;P&gt;- in your concattenate-Load statement, you're loading the previous loaded records (with the insertDate they got at the moment they were loaded), and only the concttenated records will have the insertDate of getDate()/currentDatetime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I'm missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also write about &lt;EM&gt;"insertDate will be changing when the row is updated":&lt;/EM&gt; in this script there is no factility for "record-updates": it just inserts new ones (and checks on the primary key). Is this the thing you need to change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 10:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-incremental-loading/m-p/389954#M145516</guid>
      <dc:creator />
      <dc:date>2012-10-08T10:14:22Z</dc:date>
    </item>
  </channel>
</rss>

