<?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: Update, Append, Purge, Composite key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584581#M217000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does Group by EmpID, CreateDate do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 21:14:15 GMT</pubDate>
    <dc:creator>userid128223</dc:creator>
    <dc:date>2014-02-13T21:14:15Z</dc:date>
    <item>
      <title>Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584577#M216996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have following data that has source QVD and daily qvd. Source needs to get modified on daily basis via updates from daily.qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Uniq key&lt;/STRONG&gt; is composed of:&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&amp;nbsp; EmpID+EmpName+CreateDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Daily file will have duplicate data where only updateDate will indicate latest recods which needs to be kept.&lt;/LI&gt;&lt;LI&gt;Data that is similar in daily.qvd needs to be purged out based on latest Updatdate.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Daily.qvd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 469px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;EmpID&lt;/TD&gt;&lt;TD class="xl65" width="89"&gt;EmpName&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Amount&lt;/TD&gt;&lt;TD class="xl65" width="80"&gt;TerminalNo&lt;/TD&gt;&lt;TD class="xl65" width="77"&gt;CreateDate&lt;/TD&gt;&lt;TD class="xl65" width="95"&gt;UpdateDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$200&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/6/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$100,000&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/7/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$500,000&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/9/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$400&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;235&lt;/TD&gt;&lt;TD&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$55&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/22/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;235&lt;/TD&gt;&lt;TD&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$200,000&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2/1/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;235&lt;/TD&gt;&lt;TD&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$500&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/15/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/15/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;345&lt;/TD&gt;&lt;TD&gt;Kim&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$456&lt;/TD&gt;&lt;TD align="right"&gt;56&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/9/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/9/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;724&lt;/TD&gt;&lt;TD&gt;Mele&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$25&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/18/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;887&lt;/TD&gt;&lt;TD&gt;Duwane&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$15&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/22/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/22/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Source.QVD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="443"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;EmpID&lt;/TD&gt;&lt;TD width="64"&gt;EmpName&lt;/TD&gt;&lt;TD width="76"&gt;Amount&lt;/TD&gt;&lt;TD width="80"&gt;TerminalNo&lt;/TD&gt;&lt;TD width="77"&gt;CreateDate&lt;/TD&gt;&lt;TD width="82"&gt;UpdateDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$200&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/6/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$400&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;235&lt;/TD&gt;&lt;TD&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$55&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/22/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;235&lt;/TD&gt;&lt;TD&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$200,000&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2/1/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;345&lt;/TD&gt;&lt;TD&gt;Kim&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;$456&lt;/TD&gt;&lt;TD align="right"&gt;56&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/9/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/9/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;FINAL RESULTS:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="437"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;EmpID&lt;/TD&gt;&lt;TD width="71"&gt;EmpName&lt;/TD&gt;&lt;TD width="64"&gt;Amount&lt;/TD&gt;&lt;TD width="80"&gt;TerminalNo&lt;/TD&gt;&lt;TD width="77"&gt;CreateDate&lt;/TD&gt;&lt;TD width="81"&gt;UpdateDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;$500,000&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/9/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;123&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;$400&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/8/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;235&lt;/TD&gt;&lt;TD&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;$200,000&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;2/1/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;345&lt;/TD&gt;&lt;TD&gt;Kim&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;$456&lt;/TD&gt;&lt;TD align="right"&gt;56&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/9/2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/9/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;724&lt;/TD&gt;&lt;TD&gt;Mele&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;$25&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/18/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;887&lt;/TD&gt;&lt;TD&gt;Duwane&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;$15&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/22/2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1/22/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584577#M216996</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-13T20:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584578#M216997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do the trick:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;LOAD * FROM Daily.qvd (qvd);&lt;/P&gt;
&lt;P&gt;CONCATENATE (Final) LOAD * FROM Source.qvd (qvd);&lt;/P&gt;
&lt;P&gt;INNER JOIN (Final) LOAD EmpID, CreateDate, max(UpdateDate) as UpdateDate RESIDENT Final GROUP BY EmpID, CreateDate;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example files also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584578#M216997</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-13T20:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584579#M216998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicole for quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 follow-up questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Does the uniq key in this whole scenerio matters, i dont see any thing to compute uniq key or use it in code.&lt;/LI&gt;&lt;LI&gt;Will this always fetch the new updated records even if they exist in Source.qvd.&lt;/LI&gt;&lt;LI&gt;Can you please explain how your code works. I was following you up until Concatenate. Please explain below.&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;INNER JOIN (Final) LOAD EmpID, CreateDate, max(UpdateDate) as UpdateDate RESIDENT Final GROUP BY EmpID, CreateDate;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584579#M216998</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-13T20:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584580#M216999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&amp;nbsp; I don't need to create a key because we're not linking the tables.&amp;nbsp; We're joining and concatenating on fields that exist in both files and that are named the same, so there is no need to concatenate the three fields together.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; It should.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; We start by just concatenating all data together (as you said you understand).&amp;nbsp; Then the inner join is used to keep everything that doesn't have the max(UpdateDate) for each Employee/CreateDate combination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 21:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584580#M216999</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-13T21:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584581#M217000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does Group by EmpID, CreateDate do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 21:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584581#M217000</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-13T21:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584582#M217001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicole I tried your solution and it works great&amp;nbsp; However I still have hard time understanding it. I will try below and you correct me or fill in the gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Final:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * FROM Daily.qvd (qvd);&amp;nbsp;&amp;nbsp;&amp;nbsp; // Load all the data from Daily.qvd&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONCATENATE (Final) LOAD * FROM Source.qvd (qvd);&amp;nbsp;&amp;nbsp; // Load all the data to above tables and append any new found records.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;At this point we have this table.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="570"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="53"&gt;EmpID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="62"&gt;EmpName&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="67"&gt;Amount&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="70"&gt;TerminalNo&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="166"&gt;CreateDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="152"&gt;UpdateDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;123&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$200.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/6/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;123&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$400.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/8/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;123&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$100,000.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/7/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;123&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Joe&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$500,000.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/9/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;235&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$55.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/22/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;235&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$500.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/15/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/15/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;235&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$200,000.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/8/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2/1/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;345&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Kim&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$456.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;56&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/9/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/9/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;724&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Mele&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$25.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/18/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;887&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Duwane&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;$15.00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/22/2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1/22/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am lost after this......&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;After this INNER JOIN (FINAL)&amp;nbsp;&amp;nbsp; // how does it look here at this point.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD EmpID, CreateDate, max(UpdateDate) as UpdateDate RESIDENT Final GROUP BY EmpID, CreateDate; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 22:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584582#M217001</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-13T22:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584583#M217002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Group By clause is needed because max() is an aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are loading EmpID, CreateDate, and max(UpdateDate) grouped by EmpID and CreateDate since you want the newest UpdateDate for each EmpId and CreateDate.&amp;nbsp; By inner joining only the newest UpdateDate, EmpId, and CreateDate to the old table with all the data, it gets rid of the ones that don't have the newest UpdateDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 13:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584583#M217002</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-14T13:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584584#M217003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicole.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need training in basics i guess. where do you go to learn these stuff. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 14:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584584#M217003</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-14T14:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584585#M217004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me, it's been a combination of learning at work when I hit a problem as well as just reading posts on the community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 14:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584585#M217004</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-14T14:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584586#M217005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me its more of sql i think then qlikview. i think SQL is 50% of qlikview. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 14:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584586#M217005</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-14T14:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584587#M217006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're new to SQL, start by going through this tutorial (&lt;A class="unlinked" title="http://www.w3schools.com/sql/default.asp?PHPSESSID=300ae3404d5fa2612f238abeebb8869c"&gt;http://www.w3schools.com/sql/default.asp?PHPSESSID=300ae3404d5fa2612f238abeebb8869c&lt;/A&gt;).&amp;nbsp; It's pretty simple and doesn't dive in very deep, but it should give you a good start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of the answers above are correct or helpful, please mark them so that others can find solutions to their problems too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 14:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584587#M217006</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-14T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584588#M217007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did thanks, your solutions are simple easy to understand and to the point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 14:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584588#M217007</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-14T14:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584589#M217008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you did not have update date and only wanted to update records based on uniq key then you will use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where not exist (key)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however because we had update date in the mix this time, you had to do inner join and group by clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 14:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584589#M217008</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-14T14:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584590#M217009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We could have gone the exists/not exists route for this example as well, but it works better using the inner join because it will take the newest data whether it's in the Daily &lt;EM&gt;or&lt;/EM&gt; Source file.&amp;nbsp; (It's also less code to do it with the inner join.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 14:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584590#M217009</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-14T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584591#M217010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;out of curiosity i tried this. I get all the records. why please explain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN (FINAL) &lt;/P&gt;&lt;P&gt;LOAD EmpID, EmpName, Amount, TerminalNo, CreateDate, max(UpdateDate) as UpdateDate RESIDENT FINAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GROUP BY EmpID, EmpName, Amount, TerminalNo, CreateDate;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 15:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584591#M217010</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-14T15:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584592#M217011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't be including Amount and TerminalNo, they make every row unique.&amp;nbsp; You only want the unique rows for EmpID, EmpName, CreateDate, and max(UpdateDate).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 15:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584592#M217011</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-14T15:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584593#M217012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sense amazing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 15:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584593#M217012</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-14T15:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584594#M217013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont give me solution but just give me theory if you were to approach this using where not exist. how would you solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these kind of situation is there a rule of thumb, do you have theory on that. if its this then do that kind of scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 15:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584594#M217013</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2014-02-14T15:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584595#M217014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load all from Source adding a key for unique lines (EmpID and CreateDate).&amp;nbsp; Then load all from Daily where same key does not exist in Source.&amp;nbsp; Then you still need the inner join to get latest update date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 18:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584595#M217014</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-14T18:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update, Append, Purge, Composite key</title>
      <link>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584596#M217015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at your data, it seems that everything in Source is also in Daily, so why not just load Daily in for the newest UpdateDate?&amp;nbsp; (Maybe your example isn't like your actual data, but if it is, it seems like the Source part isn't even needed since all data would exist in Daily anyway.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 18:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-Append-Purge-Composite-key/m-p/584596#M217015</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-14T18:29:45Z</dc:date>
    </item>
  </channel>
</rss>

