<?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: Adding a column to a resident table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695599#M1055468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myTable:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt;"&gt;field1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (myTable)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt;"&gt;field2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;field1&amp;amp;field2 as New field&lt;/P&gt;&lt;P&gt;resident myTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 04:28:14 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2014-10-10T04:28:14Z</dc:date>
    <item>
      <title>Adding a column to a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695598#M1055467</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 a table loaded like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myTable:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;field1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I left join it with another table such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (myTable) load&lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;field2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need now is to add a new key field to myTable :&lt;/P&gt;&lt;P&gt;field1&amp;amp;field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adding this to the left join statement above fails. What is the best solution to do this for large data files (I would like to avoid re-loading a new table from resident and dropping the original table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 04:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695598#M1055467</guid>
      <dc:creator />
      <dc:date>2014-10-10T04:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column to a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695599#M1055468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myTable:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt;"&gt;field1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (myTable)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt;"&gt;field2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;field1&amp;amp;field2 as New field&lt;/P&gt;&lt;P&gt;resident myTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 04:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695599#M1055468</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-10T04:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column to a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695600#M1055469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;myTable:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt;"&gt;field1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (myTable) load&lt;/P&gt;&lt;P&gt;id,&lt;SPAN style="font-size: 10pt;"&gt;field2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DesiredTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field1&amp;amp;field2 as NewField&lt;/P&gt;&lt;P&gt;Resident myTable;&lt;/P&gt;&lt;P&gt;Drop Table myTable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 04:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695600#M1055469</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-10-10T04:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column to a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695601#M1055470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I world go with resesco's solution. I would do a change to the key field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1&amp;amp;field2 as key &lt;/P&gt;&lt;P&gt;I would make sure that the unique field1 and field2 combination gets an unique key.&lt;/P&gt;&lt;P&gt;Imagine the following&lt;/P&gt;&lt;P&gt;Field1 = 1 and Field2 = 12. --&amp;gt; Key = 112&lt;/P&gt;&lt;P&gt;Field1 = 11 and Field2 = 2 --&amp;gt; Key = 112&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tend to put pipe between each field in a composite key to avoid this problem.&lt;/P&gt;&lt;P&gt;field1 &amp;amp; '|'&amp;nbsp;&amp;nbsp; &amp;amp;field2 as key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even do some kind of autonumber on the field to avoid long strings.&lt;/P&gt;&lt;P&gt;E.g. autonumber(field1 &amp;amp; '|'&amp;nbsp;&amp;nbsp; &amp;amp;field2) as key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 05:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695601#M1055470</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2014-10-10T05:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column to a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695602#M1055471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; why don't you try like below&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;filed1 &amp;amp;'_'&amp;amp; field2 as field3;&lt;/P&gt;&lt;P&gt;Actually we generally used this type of scenario for removing the Synthetic keys in table&lt;/P&gt;&lt;P&gt;i hope it will be helpful to u .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 05:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695602#M1055471</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2014-10-10T05:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column to a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695603#M1055472</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;If the you are only getting one or two fields from table2, then use a mapping to add it to table1, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapField2:&lt;/P&gt;&lt;P&gt;Mapping LOAD id, field2 from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myTable:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('MapField2', id) As field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; field1 &amp;amp; ApplyMap('MapField2', id) As field3&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If there is more than one field, you can concatenate them into a single mapping or build multiple mapping tables; testing would indicate which is better in your case.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 05:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-column-to-a-resident-table/m-p/695603#M1055472</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-10T05:41:12Z</dc:date>
    </item>
  </channel>
</rss>

