<?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 about specification of Concatenate Load in scripts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/about-specification-of-Concatenate-Load-in-scripts/m-p/371318#M491932</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;please let me know that about subtitle.&lt;/P&gt;&lt;P&gt;i'm wondering result to reload the following scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Item_cd &amp;amp; '-' &amp;amp; Item_location as Primary Key,&lt;/P&gt;&lt;P&gt;Item_qty;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select * from DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATINATE(Item) LOAD&lt;/P&gt;&lt;P&gt;Item_cd &amp;amp; '-' &amp;amp; Item_location as Primary Key,&lt;/P&gt;&lt;P&gt;Item_qty&lt;/P&gt;&lt;P&gt;from file.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is this result update or insert as new data from qvd if both Primary Key are same?&lt;/P&gt;&lt;P&gt;if result is insert then how can i update(delete &amp;amp; insert) to Item teble using Primary Key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please anyone tell me this matter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2012 09:13:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-27T09:13:04Z</dc:date>
    <item>
      <title>about specification of Concatenate Load in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/about-specification-of-Concatenate-Load-in-scripts/m-p/371318#M491932</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;please let me know that about subtitle.&lt;/P&gt;&lt;P&gt;i'm wondering result to reload the following scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Item_cd &amp;amp; '-' &amp;amp; Item_location as Primary Key,&lt;/P&gt;&lt;P&gt;Item_qty;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select * from DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATINATE(Item) LOAD&lt;/P&gt;&lt;P&gt;Item_cd &amp;amp; '-' &amp;amp; Item_location as Primary Key,&lt;/P&gt;&lt;P&gt;Item_qty&lt;/P&gt;&lt;P&gt;from file.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is this result update or insert as new data from qvd if both Primary Key are same?&lt;/P&gt;&lt;P&gt;if result is insert then how can i update(delete &amp;amp; insert) to Item teble using Primary Key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please anyone tell me this matter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/about-specification-of-Concatenate-Load-in-scripts/m-p/371318#M491932</guid>
      <dc:creator />
      <dc:date>2012-07-27T09:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: about specification of Concatenate Load in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/about-specification-of-Concatenate-Load-in-scripts/m-p/371319#M491933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say you have 2 tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;TableSource:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;TableSource.PK, TableSource.Value&lt;/P&gt;&lt;P&gt;1, 1&lt;/P&gt;&lt;P&gt;2, 2&lt;/P&gt;&lt;P&gt;3, 4&lt;/P&gt;&lt;P&gt;4, 8&lt;/P&gt;&lt;P&gt;5, 16&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableUpdate:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;TableUpdate.PK, TableUpdate.Value&lt;/P&gt;&lt;P&gt;4, UPDATED&lt;/P&gt;&lt;P&gt;5, UPDATED&lt;/P&gt;&lt;P&gt;6, 32&lt;/P&gt;&lt;P&gt;7, 64&lt;/P&gt;&lt;P&gt;];&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;&lt;/P&gt;&lt;P&gt;If you load with a CONCATENATE, you will have inserted rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;TableSource.PK AS PK, &lt;/P&gt;&lt;P&gt;TableSource.Value AS Value&lt;/P&gt;&lt;P&gt;RESIDENT TableSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;TableUpdate.PK AS PK, &lt;/P&gt;&lt;P&gt;TableUpdate.Value AS Value&lt;/P&gt;&lt;P&gt;RESIDENT TableUpdate;&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;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18965" alt="2012-07-27_112342.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/18965_2012-07-27_112342.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want that your table "TableUpdate" really update your data, I advise you to think upside down: you first load the "update" table, then you load the first table, but filtering on the PK that don't exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;TableUpdate.PK AS PK, &lt;/P&gt;&lt;P&gt;TableUpdate.Value AS Value&lt;/P&gt;&lt;P&gt;RESIDENT TableUpdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;TableSource.PK AS PK, &lt;/P&gt;&lt;P&gt;TableSource.Value AS Value&lt;/P&gt;&lt;P&gt;RESIDENT TableSource&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS(PK, TableSource.PK);&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;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18966" alt="2012-07-27_112725.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/18966_2012-07-27_112725.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have more than 2 sources, you will have to be smarter:&lt;/P&gt;&lt;P&gt;- load data in a temp table, with a "date" field&lt;/P&gt;&lt;P&gt;- left join the the last date in a "last_date" field with a "max()" function group by PK&lt;/P&gt;&lt;P&gt;- load your data in a new table, filtering on "date = last_date"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/about-specification-of-Concatenate-Load-in-scripts/m-p/371319#M491933</guid>
      <dc:creator />
      <dc:date>2012-07-27T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: about specification of Concatenate Load in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/about-specification-of-Concatenate-Load-in-scripts/m-p/371320#M491934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;I understand this specification..and solved it by using your method.&lt;/P&gt;&lt;P&gt;I'm really helped your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 03:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/about-specification-of-Concatenate-Load-in-scripts/m-p/371320#M491934</guid>
      <dc:creator />
      <dc:date>2012-08-01T03:25:33Z</dc:date>
    </item>
  </channel>
</rss>

