<?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 Incremental Update question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Update-question/m-p/438217#M163374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following Script (sourced from the forums) as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Let&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ThisExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;(); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-style: italic;"&gt;:&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SQL&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;, X, Y &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; DB_TABLE&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ModificationTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;#$(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;LastExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;)#&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ModificationTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;#$(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;ThisExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;)#&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Concatenate&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;, X, Y &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; File.QVD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; EXISTS(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;);&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Inner&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Join &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SQL&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; DB_TABLE;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ScriptErrorCount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;then&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;STORE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;QV_Table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; File.QVD;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Let&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;LastExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ThisExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is now: What if my PrimaryKey is 2 columns? How would I be able to do that? We have 4 financial databases that could have invoice numbers that are the same across all 4, when I load my data into the data warehouse, I include the name of where it's from in a seperate column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to do an incremental update now as the records updates. The code doing this to the data warehouse is already done, and I'm busy with the QVW now, but would need to work with two "PrimaryKey"'s if at all possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 06:29:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-15T06:29:36Z</dc:date>
    <item>
      <title>Incremental Update question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Update-question/m-p/438217#M163374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following Script (sourced from the forums) as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Let&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ThisExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;(); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-style: italic;"&gt;QV_Table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-style: italic;"&gt;:&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SQL&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;, X, Y &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; DB_TABLE&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ModificationTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;#$(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;LastExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;)#&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ModificationTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;#$(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;ThisExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black; font-weight: bold; font-style: italic;"&gt;)#&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Concatenate&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;, X, Y &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; File.QVD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; EXISTS(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;);&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Inner&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Join &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SQL&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;PrimaryKey&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; DB_TABLE;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ScriptErrorCount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;then&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;STORE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;QV_Table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; File.QVD;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;Let&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;LastExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;ThisExecTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Times New Roman'; color: #3333cc; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is now: What if my PrimaryKey is 2 columns? How would I be able to do that? We have 4 financial databases that could have invoice numbers that are the same across all 4, when I load my data into the data warehouse, I include the name of where it's from in a seperate column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to do an incremental update now as the records updates. The code doing this to the data warehouse is already done, and I'm busy with the QVW now, but would need to work with two "PrimaryKey"'s if at all possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 06:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Update-question/m-p/438217#M163374</guid>
      <dc:creator />
      <dc:date>2013-02-15T06:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Update question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Update-question/m-p/438218#M163375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a composite key in the form key1&amp;amp;'-'&amp;amp;key2 AS compositekey.&lt;/P&gt;&lt;P&gt;This format can also be used in the where exists() clause.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 12:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Update-question/m-p/438218#M163375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-15T12:30:08Z</dc:date>
    </item>
  </channel>
</rss>

