<?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: Another Join Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564287#M1100121</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;the rules for joining are actually quite easy:&lt;/P&gt;&lt;P&gt;- The "primary" table (the one that you want to join another to) has to be loaded first.&lt;/P&gt;&lt;P&gt;-&amp;gt; then you type the keyword JOIN (write the "primary" table in brackets to make it explicit)&lt;/P&gt;&lt;P&gt;-&amp;gt; then comes the LOAD statement for the "secondary" table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just have to be careful about the keys. As a rule - there are exceptions, of course - the "primary" table should have a unique key (where the "hover_quick_tip" says "perfect" or "primary")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regardes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 08:59:38 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-04-11T08:59:38Z</dc:date>
    <item>
      <title>Another Join Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564286#M1100119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set loaded - all relational as per the image below - all working as expected.&lt;/P&gt;&lt;P&gt;I have another data set that contains information about the quality of the overall data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marked in RED are the Foreign Keys that will align with the BusinessRules tables PrimaryKey (marked in BLUE)&lt;/P&gt;&lt;P&gt;I am a little confused as to the right way to join the tables up ... From a script Perspective what should it look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join after load? Join during load? And what should the code look like .. an example would be very useful if possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Keys.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57031_Keys.jpg" style="width: 620px; height: 273px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 08:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564286#M1100119</guid>
      <dc:creator />
      <dc:date>2014-04-11T08:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Another Join Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564287#M1100121</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;the rules for joining are actually quite easy:&lt;/P&gt;&lt;P&gt;- The "primary" table (the one that you want to join another to) has to be loaded first.&lt;/P&gt;&lt;P&gt;-&amp;gt; then you type the keyword JOIN (write the "primary" table in brackets to make it explicit)&lt;/P&gt;&lt;P&gt;-&amp;gt; then comes the LOAD statement for the "secondary" table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just have to be careful about the keys. As a rule - there are exceptions, of course - the "primary" table should have a unique key (where the "hover_quick_tip" says "perfect" or "primary")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regardes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 08:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564287#M1100121</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-04-11T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Another Join Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564288#M1100123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an example could you comment on what this should be as a statement ( I tend to split each table load into separate tabs .. this is only two of the tables of many .. and will the join statement have any affect the already correct data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KeyTable:&lt;/P&gt;&lt;P&gt;LOAD MasterTable;&lt;/P&gt;&lt;P&gt;SQL SELECT MasterTable&lt;/P&gt;&lt;P&gt;FROM `C:\Users\RMiller\Desktop\QlikNext\Insurance.xlsx`.`KeyTable$`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agents:&lt;/P&gt;&lt;P&gt;LOAD `Agent ID` as [Agent Primary Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agents,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agent_EntityID;&lt;/P&gt;&lt;P&gt;SQL SELECT `Agent ID`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agents,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agent_EntityID&lt;/P&gt;&lt;P&gt;FROM `C:\Users\RMiller\Desktop\QlikNext\Insurance.xlsx`.`Agents$`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns to join on are Mastertable and Agent_EntityID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thanks by the way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/115174"&gt;DataNibbler&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564288#M1100123</guid>
      <dc:creator />
      <dc:date>2014-04-11T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Another Join Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564289#M1100125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're welcome.&lt;/P&gt;&lt;P&gt;Splitting your script onto tabs is a very good idea. It will help others who have to maintain your apps - your colleague or/and eventually your follower - to understand.&lt;/P&gt;&lt;P&gt;=&amp;gt; Can be enhanced IMHO by using numbers - the tab_labels are then like "03_blabbery" and "04_bumblebee" - that way, for instance, you would know that the tab 04 necessarily has to be on the right of the tab 03 because it builds upon the latter (RESIDENT LOAD or so, I have those all over the place)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To your question:&lt;/P&gt;&lt;P&gt;- The fields on which you want to join have to have the same name - same proceeding as with QV's automatic&lt;BR /&gt;&amp;nbsp; association. =&amp;gt; so it would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ccff;"&gt;// ?This is your primary table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;KeyTable:&lt;/P&gt;&lt;P&gt;LOAD MasterTable;&lt;/P&gt;&lt;P&gt;SQL SELECT MasterTable&lt;/P&gt;&lt;P&gt;FROM `C:\Users\RMiller\Desktop\QlikNext\Insurance.xlsx`.`KeyTable$`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agents:&lt;/P&gt;&lt;P&gt;LOAD `Agent ID` as [Agent Primary Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agents,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #00ccff;"&gt;Agent_EntityID as MasterTable&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT `Agent ID`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agents,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agent_EntityID&lt;/P&gt;&lt;P&gt;FROM `C:\Users\RMiller\Desktop\QlikNext\Insurance.xlsx`.`Agents$`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564289#M1100125</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-04-11T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Another Join Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564290#M1100127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the phrase I am looking for is "Wood for the Trees"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564290#M1100127</guid>
      <dc:creator />
      <dc:date>2014-04-11T09:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Another Join Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564291#M1100128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahaaa ... now the load time has jumped to 5 minutes plus from 30 seconds .. seems to be creating lots of Synthetic keys ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="57063" alt="synth.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57063_synth.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possibly because I have several tables that all need to join the same table ,, and naming the same column causes an issue ..&lt;/P&gt;&lt;P&gt;So back to Join ... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Join-Question/m-p/564291#M1100128</guid>
      <dc:creator />
      <dc:date>2014-04-11T09:35:21Z</dc:date>
    </item>
  </channel>
</rss>

