<?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: Delta load using flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628661#M1089401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV_Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;FROM DB_TABLE&lt;/P&gt;&lt;P&gt;WHERE flag= 'Y'; //Load only modified data from db&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(PrimaryKey); //Add all unmodified data from QDV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE QV_Table INTO File.QVD; //store back updated data into qvd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 05:37:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-27T05:37:55Z</dc:date>
    <item>
      <title>Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628655#M1089395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;I want to do delta load for a table, where there is no date field instead there is a flag field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;This table is not insert only, existing records will also get updated (if there is a change in the record, then we will expire the old record with currentflag status ‘N’ and insert new record with currentflag ‘Y’). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Can someone help me with the script to achieve delta load for this table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Many Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Swathi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 04:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628655#M1089395</guid>
      <dc:creator />
      <dc:date>2014-05-27T04:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628656#M1089396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, swathi.&lt;/P&gt;&lt;P&gt;Please provide sample data to better understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628656#M1089396</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628657#M1089397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry i do not have any sample data for this requirement, intead i collected few information as below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This table holds Employee details.&lt;/P&gt;&lt;P&gt;2. A dimension table which holds millions of records&lt;/P&gt;&lt;P&gt;3. Insert and Update table eg., New employee added will be insert, and salary, promotion details will be updated. No delete of records from employee table.&lt;/P&gt;&lt;P&gt;4. Doesnt have any of the date field to proceed with the delta logic.&lt;/P&gt;&lt;P&gt;5. Instead there is a &lt;STRONG&gt;"CurrentFlag", &lt;/STRONG&gt;on top of this field delta logic is to be applied.&lt;/P&gt;&lt;P&gt;6. Current Flag - Holds only two data in this column which Y and N.&lt;/P&gt;&lt;P&gt;5. if there is a change in the record, then will expire the old record with currentflag status ‘N’ and insert new record with currentflag ‘Y’.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628657#M1089397</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628658#M1089398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have key field in this table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628658#M1089398</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628659#M1089399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you can read QlikView help file?&lt;/P&gt;&lt;P&gt;Pleas try search "Using QVD Files for Incremental Load".&lt;/P&gt;&lt;P&gt;Case 3 is your case and i think it is better implementation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628659#M1089399</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628660#M1089400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i have a key field in this table.&lt;/P&gt;&lt;P&gt;But no date field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628660#M1089400</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628661#M1089401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV_Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;FROM DB_TABLE&lt;/P&gt;&lt;P&gt;WHERE flag= 'Y'; //Load only modified data from db&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(PrimaryKey); //Add all unmodified data from QDV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE QV_Table INTO File.QVD; //store back updated data into qvd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628661#M1089401</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628662#M1089402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alex,&lt;/P&gt;&lt;P&gt;I shall try this approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628662#M1089402</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delta load using flag</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628663#M1089403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-load-using-flag/m-p/628663#M1089403</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:58:41Z</dc:date>
    </item>
  </channel>
</rss>

