<?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: How Delete work's in Insert, Update &amp;amp; Delete method of Incremental Load? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086440#M89082</link>
    <description>&lt;P&gt;I do not know of any other approach.&amp;nbsp; You must match the keys between the DB and the QVD to detect deletes. Unless your DB keeps a record of deletes in another table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that for the Inner Join Select, you are only selecting one field, the key field. This should be an index field and a lightweight operation to the DB.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 16:50:19 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2023-06-21T16:50:19Z</dc:date>
    <item>
      <title>How Delete work's in Insert, Update &amp; Delete method of Incremental Load?</title>
      <link>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086314#M89071</link>
      <description>&lt;P&gt;/////////// Exposure ///////////&lt;BR /&gt;temp_MaxDate:&lt;BR /&gt;LOAD Timestamp((max(datetime_modified))) as MaxDate&lt;BR /&gt;FROM $(vPath)\vw_ext_exposures_$(vDBName2).qvd(qvd);&lt;/P&gt;
&lt;P&gt;let vMaxDateE = Peek('MaxDate',0,'temp_MaxDate');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;drop Table temp_MaxDate;&lt;BR /&gt;&lt;BR /&gt;Exposure:&lt;BR /&gt;sql SELECT *&lt;BR /&gt;FROM $(vDBName1).vw_ext_exposures &lt;BR /&gt;WHERE datetime_modified &amp;lt;= '$(vMaxDateE)';&lt;/P&gt;
&lt;P&gt;let vRowsIncE2R2 = NoOfRows('Exposure');&lt;BR /&gt;trace $(vRowsIncE2R2);&lt;BR /&gt;&lt;BR /&gt;Concatenate &lt;BR /&gt;LOAD * &lt;BR /&gt;FROM $(vPath)\vw_ext_exposures_$(vDBName2).qvd(qvd)&lt;BR /&gt;WHERE NOT EXISTS(exposure_id);&lt;BR /&gt;&lt;BR /&gt;let vRowsIncE2R3 = NoOfRows('Exposure');&lt;BR /&gt;trace $(vRowsIncE2R3);&lt;/P&gt;
&lt;P&gt;Inner Join&lt;BR /&gt;Load exposure_id &lt;BR /&gt;from &lt;BR /&gt;$(vPath)\vw_ext_exposures_$(vDBName2).qvd(qvd);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;let vRowsIncE2R4 = NoOfRows('Exposure');&lt;BR /&gt;trace $(vRowsIncE2R4);&lt;/P&gt;
&lt;P&gt;STORE Exposure into $(vPath)\vw_ext_exposures_$(vDBName2).qvd(qvd);&lt;/P&gt;
&lt;P&gt;Drop Table Exposure;&lt;/P&gt;
&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 12:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086314#M89071</guid>
      <dc:creator>SanjeevR</dc:creator>
      <dc:date>2023-06-21T12:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: How Delete work's in Insert, Update &amp; Delete method of Incremental Load?</title>
      <link>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086410#M89077</link>
      <description>&lt;P&gt;I think your Inner Join is incorrect.&amp;nbsp; Your source for exposure_id should be the DB table, not the QVD. Like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Inner Join (&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;Exposure)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL Select exposure_id&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM $(vDBName1).vw_ext_exposures;&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 15:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086410#M89077</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-06-21T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: How Delete work's in Insert, Update &amp; Delete method of Incremental Load?</title>
      <link>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086431#M89080</link>
      <description>&lt;P&gt;Hi Rob,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the solution, I have tried it however I was trying not to hit the Database again as I already load where the datetime_modified is &amp;gt;= to the max date because it drastically increases the reload time. I was hoping to utilise the last updated QVD that I saved away from the previous day for the inner join because of the time constraint but it looks like that my approach will not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know of another approach that I can try to attain the same result?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sanjeev&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 16:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086431#M89080</guid>
      <dc:creator>SanjeevR</dc:creator>
      <dc:date>2023-06-21T16:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: How Delete work's in Insert, Update &amp; Delete method of Incremental Load?</title>
      <link>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086440#M89082</link>
      <description>&lt;P&gt;I do not know of any other approach.&amp;nbsp; You must match the keys between the DB and the QVD to detect deletes. Unless your DB keeps a record of deletes in another table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that for the Inner Join Select, you are only selecting one field, the key field. This should be an index field and a lightweight operation to the DB.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 16:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-Delete-work-s-in-Insert-Update-amp-Delete-method-of/m-p/2086440#M89082</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-06-21T16:50:19Z</dc:date>
    </item>
  </channel>
</rss>

