<?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 Using a script to update a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-script-to-update-a-table/m-p/1434806#M613176</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 3 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table A contains the Call data for refunds,main columns are:&lt;/P&gt;&lt;P&gt;Call_ID, ID_Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B contains transaction data where a CALL_ID was written into the data, Main Columns are:&lt;/P&gt;&lt;P&gt;Acc_Number, Call_ID, ID_Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table C contains transaction data where CALL_ID was NOT written to the Data, Main Columns are:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Acc_Number, ID_Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table C will inherently have duplicated data that is already in Table B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thinking was to use Table A to Update table C and bring the CALL_ID in, and then load it back to Table B (Concatenated). End Result is only have Table A and Table B, Table C gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that i have no idea how to pull this off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone assist please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2017 06:59:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-09-05T06:59:11Z</dc:date>
    <item>
      <title>Using a script to update a table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-script-to-update-a-table/m-p/1434806#M613176</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 3 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table A contains the Call data for refunds,main columns are:&lt;/P&gt;&lt;P&gt;Call_ID, ID_Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B contains transaction data where a CALL_ID was written into the data, Main Columns are:&lt;/P&gt;&lt;P&gt;Acc_Number, Call_ID, ID_Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table C contains transaction data where CALL_ID was NOT written to the Data, Main Columns are:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Acc_Number, ID_Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table C will inherently have duplicated data that is already in Table B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thinking was to use Table A to Update table C and bring the CALL_ID in, and then load it back to Table B (Concatenated). End Result is only have Table A and Table B, Table C gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that i have no idea how to pull this off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone assist please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 06:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-script-to-update-a-table/m-p/1434806#M613176</guid>
      <dc:creator />
      <dc:date>2017-09-05T06:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using a script to update a table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-script-to-update-a-table/m-p/1434807#M613177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would probably do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapAtoC:&lt;/P&gt;&lt;P&gt;mapping load ID_Number, Call_ID from TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableBandC:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Acc_Number, Call_ID, ID_Number, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Acc_Number &amp;amp; '|' &amp;amp; Call_ID&amp;amp; '|' &amp;amp; ID_Number as Key&lt;/P&gt;&lt;P&gt;from TableB;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Acc_Number, ID_Number, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('MapAtoC', ID_Number, '#NV') as ID_Number &lt;/P&gt;&lt;P&gt;from TableC&lt;/P&gt;&lt;P&gt;where not exists(Key, Acc_Number &amp;amp; '|' &amp;amp; Call_ID&amp;amp; '|' &amp;amp; applymap('MapAtoC', ID_Number, '#NV');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;and removing the tables A + C. If you want to keep A you will need a combined key to avoid synthetic key - also you might want to handle possible duplicates in a different way - its just a suggestion how you could approach to this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 06:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-script-to-update-a-table/m-p/1434807#M613177</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-09-06T06:36:32Z</dc:date>
    </item>
  </channel>
</rss>

