<?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 Load distinct key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-distinct-key/m-p/240991#M91442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 tables that share the same key :&lt;/P&gt;&lt;P&gt;Tables are Data_Current and Data_Histo, with a key named Data_ID&lt;/P&gt;&lt;P&gt;I want to load records from Data_Current Table&lt;/P&gt;&lt;P&gt;and add, in the same table, records from Data_Histo for which the key Data_ID has not been already loaded from Data_Current Table.&lt;/P&gt;&lt;P&gt;What is the best practice in that situation?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2010 22:31:02 GMT</pubDate>
    <dc:creator>pdumas</dc:creator>
    <dc:date>2010-02-17T22:31:02Z</dc:date>
    <item>
      <title>Load distinct key</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-key/m-p/240991#M91442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 tables that share the same key :&lt;/P&gt;&lt;P&gt;Tables are Data_Current and Data_Histo, with a key named Data_ID&lt;/P&gt;&lt;P&gt;I want to load records from Data_Current Table&lt;/P&gt;&lt;P&gt;and add, in the same table, records from Data_Histo for which the key Data_ID has not been already loaded from Data_Current Table.&lt;/P&gt;&lt;P&gt;What is the best practice in that situation?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 22:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-key/m-p/240991#M91442</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-02-17T22:31:02Z</dc:date>
    </item>
    <item>
      <title>Load distinct key</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-key/m-p/240992#M91443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD * from Table1.qvd;&lt;/P&gt;&lt;P&gt;LOAD * from Table2.qvd where not exists(Data_ID);&lt;/P&gt;&lt;P&gt;Assuming you are loading from qvd file. If this is not the case, you would need to load RESIDENT, but you would need to load Data_ID as something else. But NOT EXISTS should work fine in either case. Check out EXISTS() function documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 22:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-key/m-p/240992#M91443</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-17T22:35:29Z</dc:date>
    </item>
    <item>
      <title>Load distinct key</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-key/m-p/240993#M91444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Data_ID a unique key?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Data]:&lt;BR /&gt;LOAD&lt;BR /&gt; Data_ID&lt;BR /&gt;,other fields&lt;BR /&gt;RESIDENT [Data_Current]&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE ([Data])&lt;BR /&gt;LOAD&lt;BR /&gt; Data_ID&lt;BR /&gt;,other fields&lt;BR /&gt;RESIDENT [Data_Histo]&lt;BR /&gt;WHERE NOT EXISTS(Data_ID)&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 22:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-key/m-p/240993#M91444</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-17T22:36:58Z</dc:date>
    </item>
  </channel>
</rss>

