<?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 Insert, Update, Delete Incremental Load Without Entire History in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Insert-Update-Delete-Incremental-Load-Without-Entire-History/m-p/810685#M668326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically we get a nightly feed which includes 7 days worth of updated/new data. Along with that we get a file including all deleted id's. My objective is to do an incremental load, insert and update, using my initial QVD (made form a "catch up" file) and the 7 day file we get nightly. I then need to use the deleted ID file to remove any records from the table I created in the incremental load. Since we don't get a full export I can't utilize the inner load of all IDs most people use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the best way to go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 17:22:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-11T17:22:00Z</dc:date>
    <item>
      <title>Insert, Update, Delete Incremental Load Without Entire History</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-Update-Delete-Incremental-Load-Without-Entire-History/m-p/810685#M668326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically we get a nightly feed which includes 7 days worth of updated/new data. Along with that we get a file including all deleted id's. My objective is to do an incremental load, insert and update, using my initial QVD (made form a "catch up" file) and the 7 day file we get nightly. I then need to use the deleted ID file to remove any records from the table I created in the incremental load. Since we don't get a full export I can't utilize the inner load of all IDs most people use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the best way to go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 17:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-Update-Delete-Incremental-Load-Without-Entire-History/m-p/810685#M668326</guid>
      <dc:creator />
      <dc:date>2014-11-11T17:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Insert, Update, Delete Incremental Load Without Entire History</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-Update-Delete-Incremental-Load-Without-Entire-History/m-p/810686#M668327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14157960709616336" jivemacro_uid="_14157960709616336" modifiedtitle="true"&gt;
&lt;P&gt;// load deleted ID's in a temporary table&lt;/P&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;LOAD ID FROM &lt;EM&gt;deleted_ids_file (txt, ...etc...) &lt;/EM&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// load only the records from the incremental_data qvd that&lt;/P&gt;
&lt;P&gt;// are not in the deleted id's file in a temporary table&lt;/P&gt;
&lt;P&gt;T2:&lt;/P&gt;
&lt;P&gt;LOAD * FROM &lt;EM&gt;incremental_data.qvd (qvd)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;WHERE NOT EXISTS(ID);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// store the records from the remaining ID's&lt;/P&gt;
&lt;P&gt;STORE T2 into &lt;EM&gt;incremental_data.qvd (qvd)&lt;/EM&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// drop tables that are no longer needed&lt;/P&gt;
&lt;P&gt;DROP TABLES T1, T2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// load the updated and new records from the nightly 7 day file&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;LOAD * FROM &lt;EM&gt;sevendaysupdates.qvd (qvd)&lt;/EM&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// load only the records from the incremental_data qvd that are&lt;/P&gt;
&lt;P&gt;// not already in the nightly 7 day file&lt;/P&gt;
&lt;P&gt;concatenate(Final)&lt;/P&gt;
&lt;P&gt;LOAD * FROM &lt;EM&gt;incremental_data.qvd (qvd)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;WHERE NOT EXISTS(ID);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// store the complete set of records in the incremental qvd&lt;/P&gt;
&lt;P&gt;STORE T2 into &lt;EM&gt;incremental_data.qvd (qvd)&lt;/EM&gt;;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-Update-Delete-Incremental-Load-Without-Entire-History/m-p/810686#M668327</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-12T12:42:32Z</dc:date>
    </item>
  </channel>
</rss>

