<?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 on load script duplicate my table in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Adding-a-column-on-load-script-duplicate-my-table/m-p/2466956#M13873</link>
    <description>&lt;P&gt;A Load statement will create a new table. The name "table_1-3" is being assigned because the name assigned in your label "table_1:" is already in use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should create a table with a different name and DROP the original table_1.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;table_1_new:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; *,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; if(isnull(column_a), 1, column_a) as column_a_2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;resident table_1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DROP Table table_1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 19:09:01 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2024-07-01T19:09:01Z</dc:date>
    <item>
      <title>Adding a column on load script duplicate my table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Adding-a-column-on-load-script-duplicate-my-table/m-p/2466947#M13872</link>
      <description>&lt;P&gt;Hi, Qlik! I'm tryng to add a column to an existing table, but after loading it its creating a new entirery table. I have something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table_1:&lt;/P&gt;
&lt;P&gt;select *&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from source&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table_2:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;left join table_1&lt;/P&gt;
&lt;P&gt;load *&lt;/P&gt;
&lt;P&gt;select *&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from source2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here, one of the joined columns of table_2 is comming almost entirely null into table_1, and im trying to fix this as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table_1:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;*,&lt;/P&gt;
&lt;P&gt;if(isnull(column_a), 1, column_a) as column_a_2&lt;/P&gt;
&lt;P&gt;resident table_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but here, instead of adding the new column to table_1, is creating a new table 'table_1-3' (no idea why its add a 3 instead of a 2, i guess) with all the columns on table_1, plus the addicional column and a synthetic key joining table_1 with table_1-3 on all the * columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 18:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Adding-a-column-on-load-script-duplicate-my-table/m-p/2466947#M13872</guid>
      <dc:creator>Zorak</dc:creator>
      <dc:date>2024-07-01T18:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column on load script duplicate my table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Adding-a-column-on-load-script-duplicate-my-table/m-p/2466956#M13873</link>
      <description>&lt;P&gt;A Load statement will create a new table. The name "table_1-3" is being assigned because the name assigned in your label "table_1:" is already in use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should create a table with a different name and DROP the original table_1.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;table_1_new:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; *,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; if(isnull(column_a), 1, column_a) as column_a_2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;resident table_1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DROP Table table_1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 19:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Adding-a-column-on-load-script-duplicate-my-table/m-p/2466956#M13873</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-07-01T19:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column on load script duplicate my table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Adding-a-column-on-load-script-duplicate-my-table/m-p/2466967#M13874</link>
      <description>&lt;P&gt;Thank you, I had to rewrite the code before to keep the original name at the end, but it worked as I needed it.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 19:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Adding-a-column-on-load-script-duplicate-my-table/m-p/2466967#M13874</guid>
      <dc:creator>Zorak</dc:creator>
      <dc:date>2024-07-01T19:41:45Z</dc:date>
    </item>
  </channel>
</rss>

