<?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: Incremental load question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995173#M338739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2015 13:00:56 GMT</pubDate>
    <dc:creator>sridhar_sigired</dc:creator>
    <dc:date>2015-12-29T13:00:56Z</dc:date>
    <item>
      <title>Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995165#M338731</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;I have an issue with pulling the deleted records from tables. Here is my scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES Table - Which contains All records (For bulk load i do reload all records from here) - Inserted and updated dates are available for new and updated records.&lt;/P&gt;&lt;P&gt;SALES_AUDIT - Which contains deleted records with deleted_date. These records physically deleted from SALES table in database itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While loading full load, &lt;/P&gt;&lt;P&gt;I am creating SALES.QVD (From Sales_Table) and SALES_DELETED.QVD (From SALES_AUDIT table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While doing incremental load,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using &amp;gt;max(deleted_date) and &amp;lt;Sysdate to get the deleted records in particular period from existing deleted QVD. And removing them from mail QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While doing next incremental load, the existing deleted records available in Deleted QVD are replaced with new set of deleted records&amp;nbsp; (as i storing on the same QVD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the issue is, when there are zero records available in deleted QVD, I have no deleted_date information to show max(deleted_date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If zero deleted records are there, i want to keep old records in deleted QVD. Is it possible??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, how can i have max(deleted_date) from previous reload time???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion would be helpful to my whole work.. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Already same kind of question asked few days back, but did not resolve. Opening new thread to reach more people. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sridhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 09:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995165#M338731</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-12-29T09:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995166#M338732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are asking is possible, you have to concatenate the newly deleted record with yesterday's deleted record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example DAY 1(Today) have 50 deleted record with the date today and this is stored in the place called ../Sales/Sales_Audit.qvd&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Then on day 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DAY 2(Tomorrow) have 25 deleted record with tomorrow's date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;the query will&amp;nbsp; be like this.,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ORG:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Load Deleted records&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;from ..&lt;SPAN style="font-size: 13.3333px;"&gt;/Sales/Sales_Audit.qvd;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Load Deleted records&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;From sales where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;max(deleted_date) and &amp;lt;Sysdate;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It will keeps your old record as well as incremental records&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this will help &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Vishnuram Jayaraman.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995166#M338732</guid>
      <dc:creator>jvishnuram</dc:creator>
      <dc:date>2015-12-29T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995167#M338733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually my concern is, i have millions of deleted records in my table. So i don't want to keep all records by doing concatenation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replace existing records with new set... i can do that by storing on same QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when ZERO records are available, i will be having problem. So i need to keep old records when i have zero records to store.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;While Full load of deleted records on Jan 1st 2016 - I get 10 million records&lt;/P&gt;&lt;P&gt;There onward i need to do incremental load daily.&lt;/P&gt;&lt;P&gt;2nd Jan - I got 1 million deleted records (I will store on 10 million records QVD now it will be 1 million records)&lt;/P&gt;&lt;P&gt;3rd Jan - I got 10K records (I will store on 1 million&amp;nbsp; records QVD now it will be 10K records)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no problem until i get more than 1 records in my incremental load, because i can pull MAX date from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4th Jan - I got 0 records (it will be storing on 10K deleted&amp;nbsp; records QVD now it will be 0 records)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will not get MAX date in next incremental load.... so i wanna keep 10K records as it is to get MAX date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or i need to get MAX date from that 10K records in any other way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995167#M338733</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-12-29T10:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995168#M338734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we use if condition to store the QVD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like if records are zero then i will not store into QVD and old QVD exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales_Deleted:&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Deleted_Time&lt;/P&gt;&lt;P&gt;from SALE_Deleted Table&lt;/P&gt;&lt;P&gt;where Deleted_Time&amp;gt; 'vMax(Deleted_Time)' and Deleted_Time&amp;lt;=sysdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Count(ID)&amp;lt;0,&lt;/P&gt;&lt;P&gt;Store Sales_Deleted into Sales_Deleted.QVD&lt;/P&gt;&lt;P&gt;Drop Table Sales_Deleted.QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995168#M338734</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-12-29T10:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995169#M338735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sales_Deleted:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Deleted_Time&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from SALE_Deleted Table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where Deleted_Time&amp;gt; 'vMax(Deleted_Time)' and Deleted_Time&amp;lt;=sysdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;let test=NoOfRows('Sales_Deleted');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If&amp;nbsp; $(test) &amp;gt; 0 then&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Store Sales_Deleted into Sales_Deleted.QVD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;end if&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table Sales_Deleted.QVD;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this will help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995169#M338735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-29T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995170#M338736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure try like this &lt;/P&gt;&lt;P&gt;if((No.of.Rows('TableName'))&amp;lt;0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995170#M338736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-29T11:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995171#M338737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then before storing the qvd check the condition record should not be zero that's it, and it is possible also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnuram Jayaraman. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995171#M338737</guid>
      <dc:creator>jvishnuram</dc:creator>
      <dc:date>2015-12-29T11:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995172#M338738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please give me a condition, how it looks like. That will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995172#M338738</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-12-29T11:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load question</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995173#M338739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 13:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-question/m-p/995173#M338739</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-12-29T13:00:56Z</dc:date>
    </item>
  </channel>
</rss>

