<?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 SQL partial reload by new date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30288#M787061</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 have searched for something similar but mostly people tend to do what I want with excel or qlikview table files. I'm looking to do a partial load using SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine a table is loaded from a database using SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TestTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;dataField1&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;dataField2&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;dateField&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dataField1,&lt;/P&gt;&lt;P&gt;dataField2,&lt;/P&gt;&lt;P&gt;dateField&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; testdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let's say data is added to that table later, obviously with a more recent date. All I want to do is load the data from that more recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I start by trying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD&lt;/P&gt;&lt;P&gt;DateLoad:&lt;/P&gt;&lt;P&gt;SQL SELECT max(dateField) as maxdate from testdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxdate = peek('maxdate')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal then being to use the variable above in the WHERE clause of the update table. BUT, how would I get that table concatenated with the one above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>SQL partial reload by new date</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30288#M787061</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 have searched for something similar but mostly people tend to do what I want with excel or qlikview table files. I'm looking to do a partial load using SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine a table is loaded from a database using SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TestTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;dataField1&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;dataField2&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;dateField&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dataField1,&lt;/P&gt;&lt;P&gt;dataField2,&lt;/P&gt;&lt;P&gt;dateField&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; testdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let's say data is added to that table later, obviously with a more recent date. All I want to do is load the data from that more recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I start by trying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD&lt;/P&gt;&lt;P&gt;DateLoad:&lt;/P&gt;&lt;P&gt;SQL SELECT max(dateField) as maxdate from testdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxdate = peek('maxdate')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal then being to use the variable above in the WHERE clause of the update table. BUT, how would I get that table concatenated with the one above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30288#M787061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL partial reload by new date</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30289#M787062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are trying to do an INCREMENTAL LOAD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically, you have 2 tables, the first one is the archived table and the second one is the "recent" table, you will need to CONCATENATE them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read this &lt;A href="https://www.quickintelligence.co.uk/qlikview-incremental-load/" title="https://www.quickintelligence.co.uk/qlikview-incremental-load/"&gt;https://www.quickintelligence.co.uk/qlikview-incremental-load/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30289#M787062</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-02-28T19:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL partial reload by new date</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30290#M787063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try incremental load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this - &lt;A href="https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/" title="https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/"&gt;https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30290#M787063</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-02-28T19:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL partial reload by new date</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30291#M787064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While the idea is good, this qlik is going to be reloaded on a server which is out of my control. Whether or not they allow for saving qvds... especially ones with an enormous load - we're talking hundreds of millions of records - is something I'd have to investigate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way to take the existing maximum date for data that's currently loaded, and use that as a variable for the next partial load? fieldDate &amp;gt; 'lastMaxdate' etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30291#M787064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T12:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL partial reload by new date</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30292#M787065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is possible to pick max date and min date from whatever table you want, but the problem is that you need to reload all the model.. so one part must be derived from an "archived" source, which is the the QVD format (because it is very fast in reading)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-partial-reload-by-new-date/m-p/30292#M787065</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-01T12:45:34Z</dc:date>
    </item>
  </channel>
</rss>

