<?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 2 tables in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785113#M5791</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all I would like to say 'Hello' as&amp;nbsp; I am new to this forum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have started my journey with QlikSense few weeks ago and I have resolved some issues on my own. However, going though different websites, forums etc. even if I have found answer on my question (below), solution has not been working correctly for me. Could I ask for your support?&lt;/P&gt;&lt;P&gt;Let's assume that I have 2 tables:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table1.ID&lt;/TD&gt;&lt;TD&gt;Table1.Name&lt;/TD&gt;&lt;TD&gt;Table1.Surname&lt;/TD&gt;&lt;TD&gt;Table1.XXX&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table2.ID&lt;/TD&gt;&lt;TD&gt;Table2.Description&lt;/TD&gt;&lt;TD&gt;Table2.Salary&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an output I would like to have following table:&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FinalTable.ID&lt;/TD&gt;&lt;TD&gt;FinalTable.Name&lt;/TD&gt;&lt;TD&gt;FinalTable.Surname&lt;/TD&gt;&lt;TD&gt;FinalTable.Description&lt;/TD&gt;&lt;TD&gt;FinalTable.Salary&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1.ID and Table2.ID is field by which table should be connected (joined). It does not matter what kind of data tables contain, it just a matter to getting final outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate for any suggestion, help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Tom&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:23:41 GMT</pubDate>
    <dc:creator>MALKITOM</dc:creator>
    <dc:date>2021-12-10T20:23:41Z</dc:date>
    <item>
      <title>Joining 2 tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785113#M5791</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all I would like to say 'Hello' as&amp;nbsp; I am new to this forum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have started my journey with QlikSense few weeks ago and I have resolved some issues on my own. However, going though different websites, forums etc. even if I have found answer on my question (below), solution has not been working correctly for me. Could I ask for your support?&lt;/P&gt;&lt;P&gt;Let's assume that I have 2 tables:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table1.ID&lt;/TD&gt;&lt;TD&gt;Table1.Name&lt;/TD&gt;&lt;TD&gt;Table1.Surname&lt;/TD&gt;&lt;TD&gt;Table1.XXX&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table2.ID&lt;/TD&gt;&lt;TD&gt;Table2.Description&lt;/TD&gt;&lt;TD&gt;Table2.Salary&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an output I would like to have following table:&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FinalTable.ID&lt;/TD&gt;&lt;TD&gt;FinalTable.Name&lt;/TD&gt;&lt;TD&gt;FinalTable.Surname&lt;/TD&gt;&lt;TD&gt;FinalTable.Description&lt;/TD&gt;&lt;TD&gt;FinalTable.Salary&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1.ID and Table2.ID is field by which table should be connected (joined). It does not matter what kind of data tables contain, it just a matter to getting final outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate for any suggestion, help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785113#M5791</guid>
      <dc:creator>MALKITOM</dc:creator>
      <dc:date>2021-12-10T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Joining 2 tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785122#M5792</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135858"&gt;@MALKITOM&lt;/a&gt;&amp;nbsp; like ?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;FinalTable:

load Table1.ID,Table1.Name,Table1.Surname,Table1.XXX

SQL SELECT * ....;

left join // or join or right join

load Table2.ID as Table1.ID,Table2.Description,Table2.Salary
SQL SELECT * ....;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Feb 2021 10:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785122#M5792</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2021-02-23T10:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Joining 2 tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785681#M5794</link>
      <description>&lt;P&gt;It does not work for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have made as follows:&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Table1.ID As FinalTable.ID,&lt;BR /&gt;Table1.Name As FinalTable.Name,&lt;BR /&gt;Table1.Surname&amp;nbsp;As FinalTable.Surname&lt;/P&gt;&lt;P&gt;RESIDENT [Table1];&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM [Table1];&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Table1.ID AS&amp;nbsp;Table2.ID,&lt;BR /&gt;Table2.Description As FinalTable.Description,&lt;BR /&gt;Table2.Salary As FinalTable.Salary,&lt;/P&gt;&lt;P&gt;RESIDENT [Table2];&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM [Table2];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It states that '&lt;SPAN&gt;There is no open data connection.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 08:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785681#M5794</guid>
      <dc:creator>MALKITOM</dc:creator>
      <dc:date>2021-02-24T08:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Joining 2 tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785683#M5795</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135858"&gt;@MALKITOM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;FinalTable:

Load

ID As FinalTableID,
Name As FinalTableName,
Surname As FinalTableSurname

;

SQL SELECT * FROM [Table1];

left join // you can change it to right join or join

LOAD

ID As FinalTableID,
Description As FinalTableDescription,
Salary As FinalTableSalary,

;

SQL SELECT * FROM [Table2];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the database fields are called: ID,Name,Surname from table 1 and ID,... from table 2 !&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 09:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785683#M5795</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2021-02-24T09:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Joining 2 tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785751#M5796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still when loading data from script I got: '&lt;SPAN&gt;There is no open data connection'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 11:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785751#M5796</guid>
      <dc:creator>MALKITOM</dc:creator>
      <dc:date>2021-02-24T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Joining 2 tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785757#M5797</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135858"&gt;@MALKITOM&lt;/a&gt;&amp;nbsp; do you have SQL connexion or ou load data from file ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 12:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785757#M5797</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2021-02-24T12:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Joining 2 tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785762#M5798</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;please find below steps that I am performing (issue described below is just part of my script code)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Load data from file. Let's call it Table A.&lt;/LI&gt;&lt;LI&gt;Split Table A to Table B,&amp;nbsp;Table C,&amp;nbsp;Table D (with Load statement, resident of Table A, with where conditions)&lt;/LI&gt;&lt;LI&gt;Table B contains data that I am interested in (OK)&lt;/LI&gt;&lt;LI&gt;Table C contains some data and Table D contains rest of data (those 2 tables need to be merged / joined by column field called ID - exists in both tables, some columns need to be taken from Table C, some from Table D) - this is issue described above.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Due to security policy reason, I am not able to provide you any code sample and so on. I do my best to describe issue as much as I can.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 12:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Joining-2-tables/m-p/1785762#M5798</guid>
      <dc:creator>MALKITOM</dc:creator>
      <dc:date>2021-02-24T12:19:13Z</dc:date>
    </item>
  </channel>
</rss>

