<?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: Increamenal load scenario in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Increamenal-load-scenario/m-p/690328#M249963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor943"&gt;&lt;/A&gt;Using QVD Files for Incremental Load&lt;/H1&gt;&lt;P&gt;Incremental load is a very common task in relation to data bases. It is defined as loading nothing but new or changed records from the database. All other data should already be available, in one way or another. With &lt;A class="MCXref_0"&gt;&lt;EM&gt;QVD Files&lt;/EM&gt;&lt;/A&gt; it is possible to perform incremental load in most cases. &lt;/P&gt;&lt;P&gt;The basic process is described below:&lt;/P&gt;&lt;P&gt;1. Load the &lt;SPAN style="background-color: #ff0000; color: #ffffff;"&gt;new data&lt;/SPAN&gt; from Database table (a slow process, but loading a limited number of records). &lt;/P&gt;&lt;P&gt;2. Load the &lt;SPAN style="background-color: #008080;"&gt;old data&lt;/SPAN&gt; from QVD file (loading many records, but a much faster process). &lt;/P&gt;&lt;P&gt;3. Create a new QVD file. &lt;/P&gt;&lt;P&gt;4. Repeat the procedure for every table loaded. &lt;/P&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P&gt;The complexity of the actual solution depends on the nature of the source database, but the following basic cases can be identified:&lt;/P&gt;&lt;P&gt;1) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 1: Append Only&lt;/EM&gt;&lt;/A&gt; (typically log files &lt;/P&gt;&lt;P&gt;2) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 2: Insert Only (No Update or Delete)&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;3) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 3: Insert and Update (No Delete)&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;4) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 4: Insert, Update and Delete&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Below you will find outlined solutions for each of these cases. The reading of QVD files can be done in either optimized mode or standard mode. (The method employed is automatically selected by the QlikView script engine depending on the complexity of the operation.) Optimized mode is (very approximately) about 10x faster than standard mode or about 100x faster than loading the database in the ordinary fashion. &lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor944"&gt;&lt;/A&gt;&lt;A name="Append_only"&gt;&lt;/A&gt;Case 1: Append Only&lt;/H3&gt;&lt;P&gt;The simplest case is the one of log files; files in which records are only appended and never deleted. The following conditions apply:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The database must be a log file (or some other file in which records are appended and not inserted or deleted) which is contained in a text file (no ODBC/OLE DB).&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView keeps track of the number of records that have been previously read and loads only records added at the end of the file. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;Buffer (Incremental) Load * From LogFile.txt (ansi, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor945"&gt;&lt;/A&gt;&lt;A name="Insert_only"&gt;&lt;/A&gt;Case 2: Insert Only (No Update or Delete)&lt;/H3&gt;&lt;P&gt;If the data resides in a database other than a simple log file the case 1 approach will not work. However, the problem can still be solved with minimum amount of extra work. The following conditions apply:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The data source can be any database.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView loads records inserted in the database after the last script execution.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A field ModificationDate (or similar) is required for QlikView to recognize which records are new. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P class="Code"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/P&gt;&lt;P class="Code"&gt;AND ModificationTime &amp;lt; #$(BeginningThisExecTime)#;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD;&lt;/P&gt;&lt;P class="Code"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P&gt;(The hash signs in the SQL WHERE clause define the beginning and end of a date. Check your database manual for the correct date syntax for your database.)&lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor946"&gt;&lt;/A&gt;&lt;A name="Insert_and_Update"&gt;&lt;/A&gt;Case 3: Insert and Update (No Delete)&lt;/H3&gt;&lt;P&gt;The next case is applicable when data in previously loaded records may have changed between script executions. The following conditions apply:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The data source can be any database.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView loads records inserted into the database or updated in the database after the last script execution &lt;/LI&gt;&lt;LI&gt; A field ModificationDate (or similar) is required for QlikView to recognize which records are new.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A primary key field is required for QlikView to sort out updated records from the QVD file.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; This solution will force the reading of the QVD file to standard mode (rather than optimized), which is still considerably faster than loading the entire database. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P class="Code"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P class="Code"&gt;WHERE NOT Exists(PrimaryKey);&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor947"&gt;&lt;/A&gt;&lt;A name="Insert__Update_and_Delete"&gt;&lt;/A&gt;Case 4: Insert, Update and Delete&lt;/H3&gt;&lt;P&gt;The most difficult case to handle is when records are actually deleted from the source database between script executions. The following conditions apply: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The data source can be any database.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView loads records inserted into the database or updated in the database after the last script execution.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView removes records deleted from the database after the last script execution.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A field ModificationDate (or similar) is required for QlikView to recognize which records are new.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A primary key field is required for QlikView to sort out updated records from the QVD file.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; This solution will force the reading of the QVD file to standard mode (rather than optimized), which is still considerably faster than loading the entire database. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;Let ThisExecTime = Now( ); &lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P class="Code"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/P&gt;&lt;P class="Code"&gt;AND ModificationTime &amp;lt; #$(ThisExecTime)#;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P class="Code"&gt;WHERE NOT EXISTS(PrimaryKey);&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Inner Join SQL SELECT PrimaryKey FROM DB_TABLE;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;If ScriptErrorCount = 0 then &lt;/P&gt;&lt;P class="Code"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P class="Code"&gt;Let LastExecTime = ThisExecTime; &lt;/P&gt;&lt;P class="Code"&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #808080;"&gt;&lt;SPAN class="PrimaryQVRelease"&gt;QlikView 11 SR2&lt;/SPAN&gt;, &lt;SPAN class="PrimaryQVVersion"&gt;11414&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 11:54:07 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-07-31T11:54:07Z</dc:date>
    <item>
      <title>Increamenal load scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Increamenal-load-scenario/m-p/690326#M249961</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 suggest how to find updated records in incremental load without using comparison of last updated date with system date.&lt;/P&gt;&lt;P&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>Thu, 31 Jul 2014 11:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increamenal-load-scenario/m-p/690326#M249961</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-07-31T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Increamenal load scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Increamenal-load-scenario/m-p/690327#M249962</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;Hashes/Unique keys.&lt;/P&gt;&lt;P&gt;Comparison of dates between the source and stored records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increamenal-load-scenario/m-p/690327#M249962</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-31T11:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Increamenal load scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Increamenal-load-scenario/m-p/690328#M249963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor943"&gt;&lt;/A&gt;Using QVD Files for Incremental Load&lt;/H1&gt;&lt;P&gt;Incremental load is a very common task in relation to data bases. It is defined as loading nothing but new or changed records from the database. All other data should already be available, in one way or another. With &lt;A class="MCXref_0"&gt;&lt;EM&gt;QVD Files&lt;/EM&gt;&lt;/A&gt; it is possible to perform incremental load in most cases. &lt;/P&gt;&lt;P&gt;The basic process is described below:&lt;/P&gt;&lt;P&gt;1. Load the &lt;SPAN style="background-color: #ff0000; color: #ffffff;"&gt;new data&lt;/SPAN&gt; from Database table (a slow process, but loading a limited number of records). &lt;/P&gt;&lt;P&gt;2. Load the &lt;SPAN style="background-color: #008080;"&gt;old data&lt;/SPAN&gt; from QVD file (loading many records, but a much faster process). &lt;/P&gt;&lt;P&gt;3. Create a new QVD file. &lt;/P&gt;&lt;P&gt;4. Repeat the procedure for every table loaded. &lt;/P&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P&gt;The complexity of the actual solution depends on the nature of the source database, but the following basic cases can be identified:&lt;/P&gt;&lt;P&gt;1) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 1: Append Only&lt;/EM&gt;&lt;/A&gt; (typically log files &lt;/P&gt;&lt;P&gt;2) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 2: Insert Only (No Update or Delete)&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;3) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 3: Insert and Update (No Delete)&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;4) &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM&gt;Case 4: Insert, Update and Delete&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Below you will find outlined solutions for each of these cases. The reading of QVD files can be done in either optimized mode or standard mode. (The method employed is automatically selected by the QlikView script engine depending on the complexity of the operation.) Optimized mode is (very approximately) about 10x faster than standard mode or about 100x faster than loading the database in the ordinary fashion. &lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor944"&gt;&lt;/A&gt;&lt;A name="Append_only"&gt;&lt;/A&gt;Case 1: Append Only&lt;/H3&gt;&lt;P&gt;The simplest case is the one of log files; files in which records are only appended and never deleted. The following conditions apply:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The database must be a log file (or some other file in which records are appended and not inserted or deleted) which is contained in a text file (no ODBC/OLE DB).&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView keeps track of the number of records that have been previously read and loads only records added at the end of the file. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;Buffer (Incremental) Load * From LogFile.txt (ansi, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor945"&gt;&lt;/A&gt;&lt;A name="Insert_only"&gt;&lt;/A&gt;Case 2: Insert Only (No Update or Delete)&lt;/H3&gt;&lt;P&gt;If the data resides in a database other than a simple log file the case 1 approach will not work. However, the problem can still be solved with minimum amount of extra work. The following conditions apply:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The data source can be any database.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView loads records inserted in the database after the last script execution.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A field ModificationDate (or similar) is required for QlikView to recognize which records are new. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P class="Code"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/P&gt;&lt;P class="Code"&gt;AND ModificationTime &amp;lt; #$(BeginningThisExecTime)#;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD;&lt;/P&gt;&lt;P class="Code"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P&gt;(The hash signs in the SQL WHERE clause define the beginning and end of a date. Check your database manual for the correct date syntax for your database.)&lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor946"&gt;&lt;/A&gt;&lt;A name="Insert_and_Update"&gt;&lt;/A&gt;Case 3: Insert and Update (No Delete)&lt;/H3&gt;&lt;P&gt;The next case is applicable when data in previously loaded records may have changed between script executions. The following conditions apply:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The data source can be any database.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView loads records inserted into the database or updated in the database after the last script execution &lt;/LI&gt;&lt;LI&gt; A field ModificationDate (or similar) is required for QlikView to recognize which records are new.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A primary key field is required for QlikView to sort out updated records from the QVD file.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; This solution will force the reading of the QVD file to standard mode (rather than optimized), which is still considerably faster than loading the entire database. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P class="Code"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P class="Code"&gt;WHERE NOT Exists(PrimaryKey);&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;&lt;A name="kanchor947"&gt;&lt;/A&gt;&lt;A name="Insert__Update_and_Delete"&gt;&lt;/A&gt;Case 4: Insert, Update and Delete&lt;/H3&gt;&lt;P&gt;The most difficult case to handle is when records are actually deleted from the source database between script executions. The following conditions apply: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt; The data source can be any database.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView loads records inserted into the database or updated in the database after the last script execution.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; QlikView removes records deleted from the database after the last script execution.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A field ModificationDate (or similar) is required for QlikView to recognize which records are new.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; A primary key field is required for QlikView to sort out updated records from the QVD file.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt; This solution will force the reading of the QVD file to standard mode (rather than optimized), which is still considerably faster than loading the entire database. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG border="0" class="jiveImage" style="border-style: none;" /&gt; &lt;/P&gt;&lt;P class="example"&gt;Script Example:&lt;/P&gt;&lt;P class="Code"&gt;Let ThisExecTime = Now( ); &lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P class="Code"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/P&gt;&lt;P class="Code"&gt;AND ModificationTime &amp;lt; #$(ThisExecTime)#;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P class="Code"&gt;WHERE NOT EXISTS(PrimaryKey);&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Inner Join SQL SELECT PrimaryKey FROM DB_TABLE;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;If ScriptErrorCount = 0 then &lt;/P&gt;&lt;P class="Code"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P class="Code"&gt;Let LastExecTime = ThisExecTime; &lt;/P&gt;&lt;P class="Code"&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #808080;"&gt;&lt;SPAN class="PrimaryQVRelease"&gt;QlikView 11 SR2&lt;/SPAN&gt;, &lt;SPAN class="PrimaryQVVersion"&gt;11414&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increamenal-load-scenario/m-p/690328#M249963</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-31T11:54:07Z</dc:date>
    </item>
  </channel>
</rss>

