<?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: Delete in incremental load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625651#M230096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 05:08:25 GMT</pubDate>
    <dc:creator>deepakqlikview_123</dc:creator>
    <dc:date>2014-04-09T05:08:25Z</dc:date>
    <item>
      <title>Delete in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625650#M230095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let ThisExecTime=ReloadTime();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Select CustomerID,&lt;/P&gt;&lt;P&gt;EmpId,&lt;/P&gt;&lt;P&gt;OrderDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Orders&lt;/P&gt;&lt;P&gt;Where OrderDate&amp;gt;=date()-1&lt;/P&gt;&lt;P&gt;And OrderDate&amp;lt;$CurrentExecTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt; CustomerID,&lt;/P&gt;&lt;P&gt;EmpId,&lt;/P&gt;&lt;P&gt;OrderDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From(Filepath)&lt;/P&gt;&lt;P&gt;Where Not Exists(CustomerID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join SQL Select CustomerID From Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ScriptErrorCount = 0Then&lt;/P&gt;&lt;P&gt;Store A into(Filename)&lt;/P&gt;&lt;P&gt;Let LastExecTime = ThisExecTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End If;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how code will work moreover I am not able to understand how delete will work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 16:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625650#M230095</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-03-26T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625651#M230096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 05:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625651#M230096</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-04-09T05:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625652#M230097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you do an inner join, the resultant will get rid of non existing rows of the either tables.&lt;/P&gt;&lt;P&gt;This way you are deleting the unnecessary rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 05:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625652#M230097</guid>
      <dc:creator />
      <dc:date>2014-04-09T05:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625653#M230098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inner Join is playing the role of deletion. Say, that you had CustomerID 1,2 and 3 in the loaded data/qvd. Now in your source data CustomerID 2 is not there anymore. Then with inner join, the common CustomerIDs are 1 and 3, hence only these(1,3) are taken into consideration and 2 get's out of scope(deleted from qvd). Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 05:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625653#M230098</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-04-09T05:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625654#M230099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Step1:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL Select CustomerID,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EmpId,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OrderDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Orders&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where OrderDate&amp;gt;=date()-1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And OrderDate&amp;lt;$CurrentExecTime;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Step2: &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CustomerID,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EmpId,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OrderDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From(Filepath)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Not Exists(CustomerID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Inner join SQL Select CustomerID From Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If ScriptErrorCount = 0Then&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Store A into(Filename)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let LastExecTime = ThisExecTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;End If;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Lets say the script is divided into 3 steps:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Step1: This step pulls all the data from the database which is greater than a particular date and less than the current time(excluding future orders)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Step 2: This already existing qvd or any other file concatenates to the above loaded data and give you a resultant table of history (coming from this qvd) and new data coming from step 1.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Step 3: When you do a Inner join there might be some data deleted from the Database when using that table for inner join, it will ignore the data which was loaded in the past and are not currently in the Database. (this step deletes the data which is deleted from Database)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 05:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-in-incremental-load/m-p/625654#M230099</guid>
      <dc:creator />
      <dc:date>2014-04-09T05:19:24Z</dc:date>
    </item>
  </channel>
</rss>

