<?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 Joining tables in &amp;quot;Edit Script&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40610#M606525</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've been doing some experiments and tried joining two tables in Edit Script section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_one:&lt;/P&gt;&lt;P&gt;LOAD @1 as customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '496858702' as campaign&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '\t', no quotes, no eof);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_two:&lt;/P&gt;&lt;P&gt;Outer join (table_one)&lt;/P&gt;&lt;P&gt;LOAD @1 as customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '496858802' as campaign&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '\t', no quotes, no eof);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final_table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(campaign) as num_times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident table_two &lt;/P&gt;&lt;P&gt;group by customer_id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table table_one;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but getting an error that says; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;final_table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(campaign) as num_times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident table_two &lt;/P&gt;&lt;P&gt;group by customer_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can tell me where I'm going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2018 12:09:25 GMT</pubDate>
    <dc:creator>london1980</dc:creator>
    <dc:date>2018-03-16T12:09:25Z</dc:date>
    <item>
      <title>Joining tables in "Edit Script"</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40610#M606525</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've been doing some experiments and tried joining two tables in Edit Script section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_one:&lt;/P&gt;&lt;P&gt;LOAD @1 as customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '496858702' as campaign&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '\t', no quotes, no eof);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_two:&lt;/P&gt;&lt;P&gt;Outer join (table_one)&lt;/P&gt;&lt;P&gt;LOAD @1 as customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '496858802' as campaign&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '\t', no quotes, no eof);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final_table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(campaign) as num_times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident table_two &lt;/P&gt;&lt;P&gt;group by customer_id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table table_one;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but getting an error that says; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;final_table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(campaign) as num_times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident table_two &lt;/P&gt;&lt;P&gt;group by customer_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can tell me where I'm going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 12:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40610#M606525</guid>
      <dc:creator>london1980</dc:creator>
      <dc:date>2018-03-16T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Joining tables in "Edit Script"</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40611#M606526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;final_table:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_id,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(campaign) as num_times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident table_two&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;group by customer_id;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Use Resident table_one...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;you have joined table_two to table_one so table_two no more exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 12:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40611#M606526</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-03-16T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Joining tables in "Edit Script"</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40612#M606527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;table_two was not created, it was consumed by the join into table_one. So you should reference table_one for the results of the join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your join will behave like a concatenation because of the two different, hard coded, values of campaign. The count on the joined table will be the same as the counts on the original tables, one and two.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 12:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40612#M606527</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-03-16T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Joining tables in "Edit Script"</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40613#M606528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both!&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 12:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-tables-in-quot-Edit-Script-quot/m-p/40613#M606528</guid>
      <dc:creator>london1980</dc:creator>
      <dc:date>2018-03-16T12:15:41Z</dc:date>
    </item>
  </channel>
</rss>

