<?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: Multiple tables joining in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902871#M74468</link>
    <description>&lt;P&gt;Data Model image. (I have created this sample data model)&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2022 10:26:16 GMT</pubDate>
    <dc:creator>tvisha</dc:creator>
    <dc:date>2022-03-09T10:26:16Z</dc:date>
    <item>
      <title>How to join Multiple tables in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890471#M73355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have 4-5 tables. I want to join each other.&lt;/P&gt;
&lt;P&gt;The first three courses, organization, and registrations are linked together by &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;courseid&lt;/STRONG&gt; &lt;/FONT&gt;and &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;orgid&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;The fourth is linked by &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;hrid&lt;/STRONG&gt;&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I link the table &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;hr_positions&lt;/STRONG&gt; &lt;/FONT&gt;and &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;department&lt;/STRONG&gt; &lt;/FONT&gt;as they are not linked to &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;tblcourses&lt;/STRONG&gt;&lt;/FONT&gt; but linked to &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;human_resources&lt;/STRONG&gt; &lt;/FONT&gt;table?&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Qualify*;

tblCourses:
LOAD "COURSE_ID" as CourseId,
    DESCRIPTION,   
    "ORG_ID" as OrgId,

SQL SELECT  *
FROM COURSES
 where COURSE_TYPE='W';

left join (tblCourses)
LOAD  "ORG_ID" as OrgId,
    "ORG_NAME",

SQL SELECT *
FROM  ORGANISATIONS;

left Join (tblCourses)
LOAD "COURSE_ID" as CourseId,
        "HR_ID" as HRID;

SQL SELECT *
FROM  REGISTRATIONS;

HUMAN_RESOURCES:
left join (tblCourses) 
LOAD "HR_ID" as HRID,

SQL SELECT *
FROM "HUMAN_RESOURCES";
Left join (tblcourses) --- How do I join HRID to above registration table

LOAD "pid" as Pid,
    "hr_id" as HRID;

SQL SELECT *
FROM hr_positions;
left join (tblCourses)

 LOAD "pid" as pid,
Description,

SQL SELECT *
FROM department;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890471#M73355</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-09-17T08:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890485#M73356</link>
      <description>&lt;P&gt;Why do you need to join them? You may keep them separate and associated with the remaining tables using the IDs you got.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890485#M73356</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-08T16:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890489#M73357</link>
      <description>&lt;P&gt;What do you mean by associate here? Is it not like joining?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890489#M73357</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-02-08T16:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890502#M73358</link>
      <description>&lt;P&gt;We keep key field name same in two tables to associate them. We don't need to join them in the script if we don't need to. Qlik manages the joins in the charts&amp;nbsp; during runtime if we have chart fields coming from different tables.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890502#M73358</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-08T16:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890509#M73362</link>
      <description>&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890509#M73362</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-02-08T16:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890520#M73363</link>
      <description>&lt;P&gt;one question, but when it auto joins, it would be always a inner join. If we have to do left or right or full then?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890520#M73363</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-02-08T16:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890527#M73364</link>
      <description>&lt;P&gt;It won't be inner join, it would be left or right based on how do we sequence our dimensions.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1890527#M73364</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-08T16:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to join Multiple tables in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891034#M73417</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;Somehow, the last 2 are not working properly.&lt;/P&gt;
&lt;P&gt;When I join these 2 tables, it is doing the right outer join with the positions table, whereas it needs to be the inner join. Anything wrong with my statements&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Qualify*;

LOAD "HR_ID" as HRID,
    "HR_TYPE",
    SURNAME,
    "FULL_NAME";

SQL SELECT *
FROM HUMAN_RESOURCES";

LOAD "hr_id" as HRID ,
  "position_id" as PositionId;   

SQL SELECT *
FROM Positions

Position id is number(9,0)
Hr_id is varchar(10)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891034#M73417</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-09-17T08:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891078#M73422</link>
      <description>&lt;P&gt;Inner join needs to be explicitly done in the script, any issue in this below? I think after this Human resources and position table will have records for the matching HRIDs only.&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;LOAD "HR_ID" as HRID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "HR_TYPE",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SURNAME,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FULL_NAME";&lt;/P&gt;
&lt;P&gt;SQL SELECT *&lt;/P&gt;
&lt;P&gt;FROM HUMAN_RESOURCES";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inner Join(Table1)&lt;/P&gt;
&lt;P&gt;LOAD "hr_id" as HRID ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "position_id" as PositionId;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL SELECT *&lt;/P&gt;
&lt;P&gt;FROM Positions&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891078#M73422</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-09T15:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891082#M73423</link>
      <description>&lt;P&gt;Unfortunately it is not working&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891082#M73423</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-02-09T15:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891088#M73424</link>
      <description>&lt;P&gt;Can you share complete script, if possible a sample app would help community members to get into the real issue faster.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891088#M73424</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-09T15:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to join Multiple tables in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891091#M73425</link>
      <description>&lt;P&gt;I even tried this, but it is not working,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table1:

LOAD "HR_ID" as HRID,
    "HR_TYPE",
    SURNAME,
    "FULL_NAME";

SQL SELECT *
FROM  “HUMAN_RESOURCES";   

Inner Join (Table1)

Table2:

LOAD "hr_id" as HRID ,
  "position_id" as PositionId;   

SQL SELECT *
FROM Department;

Inner Join (Table2)

LOAD "POSITION_ID" as PositionId,
    "LEVEL_3" as Department;

SQL SELECT *
FROM "POSITIONS";&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891091#M73425</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-09-17T08:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891092#M73426</link>
      <description>&lt;P&gt;okay, I will try to create a dummy data and see&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891092#M73426</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-02-09T16:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891101#M73427</link>
      <description>&lt;P&gt;Try this may be, no need to define table2 :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Inner Join (Table1)

LOAD "hr_id" as HRID ,
  "position_id" as PositionId;   

SQL SELECT *
FROM Department;


Inner Join (Table1)

LOAD "POSITION_ID" as PositionId,
    "LEVEL_3" as Department;

SQL SELECT *
FROM "POSITIONS";&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1891101#M73427</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-09-17T08:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to join Multiple tables in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1899178#M74218</link>
      <description>&lt;P&gt;Sorry for the delay in replying.&lt;/P&gt;
&lt;P&gt;Here is a sample script, which I now created. simple tables with simple data, so now by default Qlik should join, but when I pull it into the table, it does not.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;///////////////////////
LOAD department_ID,
department;

[department]:
SELECT *
FROM "TestQuery_Database".dbo.department;

///////////////////////
LOAD HR_ID as [HR_ID],
START_DATE;

[EMPLOYEES_T]:
SELECT *
FROM "TestQuery_Database".dbo."EMPLOYEES_T";

///////////////////////
LOAD HR_ID as [HR_ID],
SURNAME,
FIRST_NAME,
MIDDLE_NAME;

[HUMAN_RESOURCES]:
SELECT *
FROM "TestQuery_Database".dbo."HUMAN_RESOURCES";

///////////////////////
LOAD department_ID,
hr_id as [HR_ID];

[Reference_Dept_Hr]:
SELECT *
FROM "TestQuery_Database".dbo."Reference_Dept_Hr";&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure how to attach the app or data.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1899178#M74218</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-09-17T08:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902328#M74437</link>
      <description>&lt;P&gt;Looking for an answer from experts please&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 09:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902328#M74437</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-03-08T09:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to join Multiple tables in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902551#M74449</link>
      <description>&lt;P&gt;Can you share your data model image, I am not sure why do you have table name after the load statement, shouldn't it be like this sequence in all the tables -&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//This below table name  should come before the load statement, haven't actually tested the impact of this having in the middle in your script

[department]:    

LOAD department_ID,
department;

SELECT *
FROM "TestQuery_Database".dbo.department;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902551#M74449</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-09-17T08:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to join Multiple tables in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902870#M74467</link>
      <description>&lt;P&gt;Sorry, there was some typo, here is the updated one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;///////////////////////
[department]:

LOAD department_ID,
department;


SELECT *
FROM "TestQuery_Database".dbo.department;

///////////////////////
[EMPLOYEES_T]:

LOAD HR_ID as [HR_ID],
START_DATE;

SELECT *
FROM "TestQuery_Database".dbo."EMPLOYEES_T";

///////////////////////
[HUMAN_RESOURCES]:

LOAD HR_ID as [HR_ID],
SURNAME,
FIRST_NAME,
MIDDLE_NAME;

SELECT *
FROM "TestQuery_Database".dbo."HUMAN_RESOURCES";

///////////////////////
[Reference_Dept_Hr]:

LOAD department_ID,
hr_id as [HR_ID];

SELECT *
FROM "TestQuery_Database".dbo."Reference_Dept_Hr";&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 17 Sep 2022 08:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902870#M74467</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-09-17T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902871#M74468</link>
      <description>&lt;P&gt;Data Model image. (I have created this sample data model)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 10:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1902871#M74468</guid>
      <dc:creator>tvisha</dc:creator>
      <dc:date>2022-03-09T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables joining</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1903161#M74494</link>
      <description>&lt;P&gt;The joining looks okay in your data model view, looks like something is wrong with the keyfield values.&lt;/P&gt;
&lt;P&gt;Can you create new field HR_ID1 in the table as shown below, and share the values of it, I want to know why this table ref-dept-hr table values are not associating with the HUMAN_RESOURCES table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Digvijay_Singh_0-1646843992451.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74098iA0CDDFD9B0BD462E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Digvijay_Singh_0-1646843992451.png" alt="Digvijay_Singh_0-1646843992451.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 16:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-join-Multiple-tables-in-Qlik-Sense/m-p/1903161#M74494</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-03-09T16:42:15Z</dc:date>
    </item>
  </channel>
</rss>

