<?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: Incrimental Load with an Update Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863820#M654641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you mean here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 19:42:36 GMT</pubDate>
    <dc:creator>MalcolmCICWF</dc:creator>
    <dc:date>2015-07-13T19:42:36Z</dc:date>
    <item>
      <title>Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863815#M654636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a bunch of qvds set up with incremental loads at our company. Most of our qvds that load from SQL have a WHERE clause&amp;nbsp; grabbing any record where the CREATE_DATE is greater or equal to a variable date that is created and stored each reload. It then concatenates any records found with the qvd if a primary key does not exist (I believe this is a normal incremental load).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I am seeing is that some of the SQL tables have an UPDATE_DATE where records can be updated if need be. This is written into some of the qvd loads, but because the primary key from this updated record exists in the qvd already, it does not get added. We are not adding updated records to the qvd, only those with new CREATE_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an incremental script that works with two different dates fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the current script (I removed the fields to shorten it):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;////////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; MaxDate:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; max_source_record.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;maxdate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('temp1',0,MaxDate),'YYYYMMDD'));&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; pointless;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//////////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; SOURCE_RECORD:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;fields&lt;/STRONG&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;fields&lt;/STRONG&gt;&lt;BR /&gt; FROM dbo.table with (nolock)&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;/*comment for full reload*/&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; where (CONVERT(VARCHAR,CREATE_DATE,112) &amp;gt;= '$(&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;maxdate&lt;/EM&gt;&lt;/STRONG&gt;)') or CONVERT(VARCHAR,CHANGE_DATE,112) &amp;gt;= '$(&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;maxdate&lt;/EM&gt;&lt;/STRONG&gt;)';&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;/*comment for full reload*/&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SOURCE_RECORD.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRIMARY_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;STORE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SOURCE_RECORD &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SOURCE_RECORD.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SOURCE_RECORD;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; currentmax:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; select max(case when CHANGE_DATE &amp;gt; CREATE_DATE then CHANGE_DATE else CREATE_DATE end) as temp1 &lt;BR /&gt; from dbo.table;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;STORE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; currentmax &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; max_source_record.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; currentmax;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863815#M654636</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2015-07-13T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863816#M654637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does each row have a unique key ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so then have a look at the section &lt;EM&gt;Free Form Data With Modification of Existing Rows &lt;/EM&gt;of this blog post &lt;A href="http://www.quickintelligence.co.uk/qlikview-incremental-load/" title="http://www.quickintelligence.co.uk/qlikview-incremental-load/"&gt;http://www.quickintelligence.co.uk/qlikview-incremental-load/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important bit is &lt;STRONG style="color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;WHERE NOT EXISTS (IDField)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863816#M654637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-13T16:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863817#M654638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the Primary_key is the unique field for each row, and I agree, the WHERE NOT EXISTS is what is preventing the updated records from being stored because the unique key exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I will look at your link, thanks for a starting place, I wasn't sure how to word this question or search for this online.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I read through and though it was a really good article, it still does not solve my problem. I have a unique ID, this is the PRIMARY_KEY, but that record has a CREATE_DATE and an UPDATE_DATE. I have an example below showing what I would have in the qvd already, and what SQL pulls the next day. You can see I now have a 4th record with a new CREATE_DATE that will concatenate to the qvd, but I also have record 1 that has been updated, but when it goes to concatenate, the PRIMARY_KEY exists and will not be updated. (At least how my script has it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know of a workaround in this situation that I could adapt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="433"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" height="20" style="border: 0px black; border-image: none;" width="244"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;In current QVD on 7/13&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0.5pt solid windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;PRIMARY_KEY&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;field changed example&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;CREATE_DATE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;UPDATE_DATE&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ABC1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;NO&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;7/13/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;null&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ABC2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;NO&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;7/13/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;null&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ABC3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;NO&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;7/13/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;null&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="3" height="20" style="border: 0px black; border-image: none;"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;SQL pulled 7/14 and needs to concatenate into QVD&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0.5pt solid windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;PRIMARY_KEY&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;field changed example&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;CREATE_DATE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;UPDATE_DATE&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #c00000 windowtext windowtext;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;ABC1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #c00000 windowtext windowtext #c00000;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;YES&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #c00000 windowtext windowtext #c00000;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;7/13/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #c00000 windowtext windowtext #c00000;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;7/14/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ABC2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;NO&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;7/13/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;null&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ABC3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;NO&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;7/13/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;null&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #c00000 windowtext windowtext;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;ABC4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #c00000 windowtext windowtext #c00000;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;NO&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #c00000 windowtext windowtext #c00000;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;7/14/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #c00000 windowtext windowtext #c00000;"&gt;&lt;SPAN style="color: #c00000; font-family: Calibri; font-size: 12pt;"&gt;null&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 18:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863817#M654638</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2015-07-13T18:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863818#M654639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In essence :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load from database if &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 16px;"&gt;UPDATE_DATE is after last load and if not then load if &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 16px;"&gt;CREATE_DATE &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 16px;"&gt;is after last load otherwise discard&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 16px; font-family: Calibri;"&gt;Concatenate onto table from above by loading qvd from last load using&amp;nbsp; WHERE NOT EXISTS ( [PrimaryKey] )&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 16px; font-family: Calibri;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;[You should notice that it is still an optimised load, which is one of the great things about &lt;SPAN style="color: #000000; font-family: Calibri;"&gt;WHERE NOT EXISTS]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863818#M654639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-13T19:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863819#M654640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have there looks like it should work.&amp;nbsp; As long as you pull the SQL first and then append the data from the QVD you should always have the latest rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can see is that you reference CHANGE_DATE in your code, but UPDATE_DATE in your example.&amp;nbsp; Have you got the wrong field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other observations; I would get the max date from the SQL data before loading the rest of the data.&amp;nbsp; As it stands it is possible for rows to be written / updated between the start of the main SQL load and the pull of the max date.&amp;nbsp; These could fall between the cracks.&amp;nbsp; Putting the get date first could cause the same row to come from SQL twice, but the WHERE EXISTS would stop duplicates finding their way into the final QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, be careful of data types, in both SQL and QlikView.&amp;nbsp; In the SQL code you are converting dates to VARCHAR before comparing them.&amp;nbsp; This may not always pull the write values due to string compare not being the same as a date one - you should instead convert the variable (which will be a string) to a date.&amp;nbsp; It may be that the format of having year, month then day means that this isn't actually an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863819#M654640</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-07-13T19:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863820#M654641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you mean here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863820#M654641</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2015-07-13T19:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863821#M654642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I modified the script to read better, so I changed to Update Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work because the PRIMARY_KEY on the record which was updated already exists in the QVD, so it will not concatenate, therefore it still has the original created record, not the updated. The updated record does not qualify to concatenate to the qvd because the primary key would already exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as your observation of the stored max date going before the SQL load, I agree, I did not write any of these. The next time the QVD is reloaded, it should get those that fell between the crack the day before in the load as those records do not exist and they max date is equal to or greater than the CREATE_DATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863821#M654642</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2015-07-13T19:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863822#M654643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary key that is already in the QVD should not stop the row being brought in from SQL.&amp;nbsp; If the query is correct then the updated SQL row should be brought into memory.&amp;nbsp; The concatenate from the existing QVD should then bring in old rows, but not ones that have been updated (i.e. are already in memory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the original ABC1 is still there after the merge, then I think it most likely that the SQL statement failed to retrieve the modified record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test for this in a couple of different ways.&amp;nbsp; One would be to put an EXIT SCRIPT statement after the SQL load, and take a look at what is in the table at that point.&amp;nbsp; You would need to ensure that you don't store the latest date file if you do this (as the new QVD will not have those rows due to the script being aborted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way you can test is to write the content of the SOURCE_RECORD to a separate QVD in between the SQL load and the QVD concatenate.&amp;nbsp; This way you can see what the SQL turned up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can check your SQL code by issuing it directly against the database using the database IDE.&amp;nbsp; The best way to grab the code (with the variables inserted) is to go into Debug mode in the load script and step through the code a line at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 20:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863822#M654643</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-07-13T20:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863823#M654644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The primary key that is already in the QVD should not stop the row being brought in from SQL. &lt;STRONG&gt;(yep I realize this)&lt;/STRONG&gt;&amp;nbsp; If the query is correct then the updated SQL row should be brought into memory&lt;STRONG&gt;.(Correct)&lt;/STRONG&gt;&amp;nbsp; The concatenate from the existing QVD should then bring in old rows, but not ones that have been updated (i.e. are already in memory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the original ABC1 is still there after the merge, then I think it most likely that the SQL statement failed to retrieve the modified record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think maybe I am just misunderstanding what the WHERE NOT EXISTS is doing. So you are telling me the WHERE NOT EXISTS is excluding the record from the qvd during the concatenation because it exist in the SQL pull? As I understood it the records that are new in the SQL pull are concatenated to the existing qvd. So, if the record (because of the primary key) existed in the qvd the record form the SQL pull is not appended into the qvd. (i.e. SQL code pulls a record that has been updated but it exists in the qvd, it is then not concatenated to the qvd because that primary key exists... I could be wrong).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 20:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863823#M654644</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2015-07-13T20:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863824#M654645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy - the WHERE NOT EXISTS constraint is on the load from the QVD, and it is rows from the old QVD that are not loaded.&amp;nbsp; When the combined QVD is then written the latest version of updated records is kept, and the previous version is effectively overwritten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic in your original script was largely correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 21:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863824#M654645</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-07-13T21:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863825#M654646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Steve for finally clearing this up for me. This is very helpful as I was under the wrong impression. This is the only thing I could be thinking of that would be causing some of the missing records we are experiencing. I cannot determine what records they are, I just know I have to d a full reload every month or two in order to ensure all records are accounted for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 21:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863825#M654646</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2015-07-13T21:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863826#M654647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I would look at doing is archiving the QVD before you do a full refresh and create a new QVD.&amp;nbsp; You can then compare the IDs and content of the two QVDs to see exactly which rows were omitted.&amp;nbsp; This should then point you in the direction of the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the missing ones all seem to have been updated around the time of your loads then the getting of the last date is a likely culprit.&amp;nbsp; Time zones and system clocks being out of sync could be another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on how long your load takes and what your refresh rate and window of opportunity for loading are you may want to consider putting in an overlap with the times.&amp;nbsp; Perhaps always go an hour, or even twenty four hours, back on the date you know you last pulled records from.&amp;nbsp; Just as the WHERE NOT EXISTS removes records that have been updated it will also remove records that have been pulled more than once because of your overlap in last load date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the luxury of being able to do this because you have a unique ID.&amp;nbsp; Where there is no unique ID it is usually a good idea to create one, in order that you can then have this kind of incremental routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 08:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863826#M654647</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-07-14T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental Load with an Update Date</title>
      <link>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863827#M654648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve, I will keep looking into it to do some comparisons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were very helpful and the reason I love the Qlik Community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incrimental-Load-with-an-Update-Date/m-p/863827#M654648</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2015-07-14T13:52:21Z</dc:date>
    </item>
  </channel>
</rss>

