<?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: Clarification on Left Joins in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677182#M674189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the syntax for joining two tables. First you load one and then you preceed the load of the second table with the prefix join(Table1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Table1)&lt;/P&gt;&lt;P&gt;Load .... From Table2; This tells QlikView to find join table2 into table1. It will join on the fields with the same name in both tables and keep all values from table2 that matches fields in table1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 16:21:08 GMT</pubDate>
    <dc:creator>simenkg</dc:creator>
    <dc:date>2014-08-14T16:21:08Z</dc:date>
    <item>
      <title>Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677176#M674183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Customer],&lt;/P&gt;&lt;P&gt;[Customer Invoice Number]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name.qvd].(qvd)&lt;/P&gt;&lt;P&gt;where match([Customer Invoice Number]&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Maturity Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name2.qvd].(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do a left join.&amp;nbsp; When I insert left join right before TABLE2 I get a table not found.&amp;nbsp; Essentially I have to create TABLE2 first.&amp;nbsp; This create two table in the table viewer and I get unwanted data (ie records with no Customer Invoice ID).&amp;nbsp; What would be the proper way to get a left join (all records in TABLE1 and matching records in TABLE2).&amp;nbsp; Essentially would I not be bringing together two resident tables as a left join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 20:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677176#M674183</guid>
      <dc:creator />
      <dc:date>2014-08-13T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677177#M674184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TABLE1:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Loan Number],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer Invoice Number]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from [qvd\workspace\name.qvd] (qvd);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/*where match([Customer Invoice Number]&amp;gt;0; this syntax is not correct and you have to change your where clause*/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left join(TABLE1)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TABLE2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Loan Number],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Maturity Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from [qvd\workspace\name2.qvd] (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 20:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677177#M674184</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-13T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677178#M674185</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;First try to understand how Left Join works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have 2 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64364" alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/64364_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;From Table1&lt;/P&gt;&lt;P&gt;Left Join(Table1)&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;From Table2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give you below result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64365" alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/64365_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Customer],&lt;/P&gt;&lt;P&gt;[Customer Invoice Number]&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name.qvd].(qvd)&lt;/P&gt;&lt;P&gt;where [Customer Invoice Number]&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN(TABLE1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Maturity Date]&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name2.qvd].(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other thing, you need to check that which table you have to place above Table2 or Table1 depending upon your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 20:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677178#M674185</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-08-13T20:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677179#M674186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me make sure I understand you.&amp;nbsp; Are you saying create TABLE1 then do a left join to the same TABLE 1 then immediately load TABLE2 ?? Did you actually mean&amp;nbsp; left join TABLE2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 23:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677179#M674186</guid>
      <dc:creator />
      <dc:date>2014-08-13T23:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677180#M674187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are creating TABLE1 and a left join to the same TABLE1 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 23:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677180#M674187</guid>
      <dc:creator />
      <dc:date>2014-08-13T23:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677181#M674188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Join takes an [optional parameter] to specify which table to Join to.&amp;nbsp; If the optional parameter is left blank it joins to the table that was loaded immediately before it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when he typed JOIN(TABLE1) he is specifying to Join&amp;nbsp; TABLE2 to TABLE1.&amp;nbsp; If he had typed JOIN without the parameter&amp;nbsp; it would have done the same implied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 01:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677181#M674188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-14T01:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677182#M674189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the syntax for joining two tables. First you load one and then you preceed the load of the second table with the prefix join(Table1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Table1)&lt;/P&gt;&lt;P&gt;Load .... From Table2; This tells QlikView to find join table2 into table1. It will join on the fields with the same name in both tables and keep all values from table2 that matches fields in table1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 16:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677182#M674189</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-14T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on Left Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677183#M674190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have not understood the concept yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64471" alt="Left Join Clarification.bmp" class="jive-image" src="/legacyfs/online/64471_Left Join Clarification.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, you are confusing between LEFT JOIN(TABLE1) syntax. It is not necessary to write TABLE1 along with LEFT JOIN. You can also Left Join using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Customer],&lt;/P&gt;&lt;P&gt;[Customer Invoice Number]&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name.qvd].(qvd)&lt;/P&gt;&lt;P&gt;where [Customer Invoice Number]&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Maturity Date]&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name2.qvd].(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes there are Tables with similar fields. So, in order to avoid the Joining between wrong tables, we specify Table Name for correct Joining. You can use this approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Customer],&lt;/P&gt;&lt;P&gt;[Customer Invoice Number]&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name.qvd].(qvd)&lt;/P&gt;&lt;P&gt;where [Customer Invoice Number]&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Loan Number],&lt;/P&gt;&lt;P&gt;[Maturity Date]&lt;/P&gt;&lt;P&gt;from [qvd\workspace\name2.qvd].(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that clarify your doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 17:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-on-Left-Joins/m-p/677183#M674190</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-08-14T17:01:23Z</dc:date>
    </item>
  </channel>
</rss>

