<?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 Why is LEFT JOIN creating extra rows? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-is-LEFT-JOIN-creating-extra-rows/m-p/145753#M24402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having a bad QV day today &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a master table with 100,000 rows and a lookup table with 100 rows linked by an ID field.&lt;/P&gt;&lt;P&gt;When I load both everything works fine with the lookup table having 100 unique ID's and QV performing as I would expect.&lt;/P&gt;&lt;P&gt;But if I load the lookup table then the master table and then try a left join to suck in a lookup field from the lookup table I end up with 10,000,000 rows in the master table!!! I might expect this if all the ID fields where blank or null, but they are definitely all populated with sensible data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lookup:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;fieldA,&lt;/P&gt;&lt;P&gt;fieldB,&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;from lookup.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;field1,&lt;/P&gt;&lt;P&gt;field2,&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;from master.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join load&lt;/P&gt;&lt;P&gt;fieldA&lt;/P&gt;&lt;P&gt;resident Lookup;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2009 20:06:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-03T20:06:59Z</dc:date>
    <item>
      <title>Why is LEFT JOIN creating extra rows?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-LEFT-JOIN-creating-extra-rows/m-p/145753#M24402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having a bad QV day today &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a master table with 100,000 rows and a lookup table with 100 rows linked by an ID field.&lt;/P&gt;&lt;P&gt;When I load both everything works fine with the lookup table having 100 unique ID's and QV performing as I would expect.&lt;/P&gt;&lt;P&gt;But if I load the lookup table then the master table and then try a left join to suck in a lookup field from the lookup table I end up with 10,000,000 rows in the master table!!! I might expect this if all the ID fields where blank or null, but they are definitely all populated with sensible data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lookup:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;fieldA,&lt;/P&gt;&lt;P&gt;fieldB,&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;from lookup.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;field1,&lt;/P&gt;&lt;P&gt;field2,&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;from master.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join load&lt;/P&gt;&lt;P&gt;fieldA&lt;/P&gt;&lt;P&gt;resident Lookup;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 20:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-LEFT-JOIN-creating-extra-rows/m-p/145753#M24402</guid>
      <dc:creator />
      <dc:date>2009-06-03T20:06:59Z</dc:date>
    </item>
    <item>
      <title>Why is LEFT JOIN creating extra rows?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-LEFT-JOIN-creating-extra-rows/m-p/145754#M24403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi isawyer,&lt;/P&gt;&lt;P&gt;You need to include the ID in the resident load that you perform the left join on, otherwise you don't have any matching fields for the join to perform like you expect. Instead you end up with a carthesian product, 100000*100 rows.&lt;/P&gt;&lt;P&gt;//JSN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 20:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-LEFT-JOIN-creating-extra-rows/m-p/145754#M24403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-03T20:59:45Z</dc:date>
    </item>
    <item>
      <title>Why is LEFT JOIN creating extra rows?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-LEFT-JOIN-creating-extra-rows/m-p/145755#M24404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JSN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you are correct, my brain was assuming that QV knew about the common ID already and therefore didnt need to be told.&lt;/P&gt;&lt;P&gt;Thats one for the GOTCHA list&lt;/P&gt;&lt;P&gt;Thanks very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 21:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-LEFT-JOIN-creating-extra-rows/m-p/145755#M24404</guid>
      <dc:creator />
      <dc:date>2009-06-03T21:06:30Z</dc:date>
    </item>
  </channel>
</rss>

