<?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 create one table from 2 different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-one-table-from-2-different-tables/m-p/1798162#M1211441</link>
    <description>&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I&amp;nbsp; have been trying to do the following,&lt;/P&gt;&lt;P&gt;TABLE 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD A, B,C from [ lib://A.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABLE 2:&lt;/P&gt;&lt;P&gt;LOAD A,&amp;nbsp; X, Y from [ lib://B.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABKE C:&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * from TABLE A;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;LOAD * from TABLE B;&lt;/P&gt;&lt;P&gt;DROP TABLE A&lt;BR /&gt;DROP TABLE B;&lt;/P&gt;&lt;P&gt;But after loading the script I a not able to find any table..&amp;nbsp; I am surely doing something wrong while creating table C. Could you please help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 23:00:46 GMT</pubDate>
    <dc:creator>noviceneil</dc:creator>
    <dc:date>2021-04-08T23:00:46Z</dc:date>
    <item>
      <title>create one table from 2 different tables</title>
      <link>https://community.qlik.com/t5/QlikView/create-one-table-from-2-different-tables/m-p/1798162#M1211441</link>
      <description>&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I&amp;nbsp; have been trying to do the following,&lt;/P&gt;&lt;P&gt;TABLE 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD A, B,C from [ lib://A.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABLE 2:&lt;/P&gt;&lt;P&gt;LOAD A,&amp;nbsp; X, Y from [ lib://B.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABKE C:&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * from TABLE A;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;LOAD * from TABLE B;&lt;/P&gt;&lt;P&gt;DROP TABLE A&lt;BR /&gt;DROP TABLE B;&lt;/P&gt;&lt;P&gt;But after loading the script I a not able to find any table..&amp;nbsp; I am surely doing something wrong while creating table C. Could you please help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 23:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-one-table-from-2-different-tables/m-p/1798162#M1211441</guid>
      <dc:creator>noviceneil</dc:creator>
      <dc:date>2021-04-08T23:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: create one table from 2 different tables</title>
      <link>https://community.qlik.com/t5/QlikView/create-one-table-from-2-different-tables/m-p/1798170#M1211442</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24674"&gt;@noviceneil&lt;/a&gt;&amp;nbsp;, that is a common behavior of Qlik. And it is related to the auto concatenation that Qlik does when it finds two similar data structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABLE 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD A, B,C from [ lib://A.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABLE 2:&lt;/P&gt;&lt;P&gt;LOAD A,&amp;nbsp; X, Y from [ lib://B.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Here, when you create Table C loading all fields from A, Qlik it is not going to create another data structure, it is going to add this load, to the first structure, so Table C never exists. You just have A with duplicated rows, and B.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TABKE C:&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * from TABLE A;&lt;/P&gt;&lt;P&gt;left join&amp;nbsp; //&lt;STRONG&gt; So this LEFT JOIN, add columns from B to A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD * from TABLE B;&lt;/P&gt;&lt;P&gt;// &lt;STRONG&gt;At this point you still having A and B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE A&amp;nbsp; // &lt;STRONG&gt;and then you drop them&lt;/STRONG&gt;&lt;BR /&gt;DROP TABLE B; //&lt;STRONG&gt; and both dissapears&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&lt;STRONG&gt;rying adding a rowno() field, or another field, in order to not create your C table just with A columns, to avoid auto concatenation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 01:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-one-table-from-2-different-tables/m-p/1798170#M1211442</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-04-09T01:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: create one table from 2 different tables</title>
      <link>https://community.qlik.com/t5/QlikView/create-one-table-from-2-different-tables/m-p/1798256#M1211444</link>
      <description>&lt;P&gt;Thanks a lot..&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I have figured out from your suggestion..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have another question, if you can help please.&lt;/P&gt;&lt;P&gt;like TABLE 1 and TABLE 2, I have 2 other tables TABLE 3 and TABLE 4, from which I am making another table TABLE D, which is of similar structure as TABLE C but for a different period.&lt;/P&gt;&lt;P&gt;Now as soon a I create TABLE C and TABLE D as there are same column A present in both these table QS creates an automatic association. But I don't want to join TABLE C and TABLE D on column A but on column X and column Y and create a master table for both the periods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 09:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-one-table-from-2-different-tables/m-p/1798256#M1211444</guid>
      <dc:creator>noviceneil</dc:creator>
      <dc:date>2021-04-09T09:39:08Z</dc:date>
    </item>
  </channel>
</rss>

