<?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: Left Join duplicates records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400278#M1155691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Key, Value2&lt;/P&gt;&lt;P&gt;A, 10&lt;/P&gt;&lt;P&gt;A, 12&lt;/P&gt;&lt;P&gt;B, 15&lt;/P&gt;&lt;P&gt;B, 16&lt;/P&gt;&lt;P&gt;B, 20&lt;/P&gt;&lt;P&gt;C, 30] Where Not Exists(Key);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right join(Table2) &lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Key, Value1&lt;/P&gt;&lt;P&gt;A, 1&lt;/P&gt;&lt;P&gt;A, 2&lt;/P&gt;&lt;P&gt;B, 2];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 05:00:29 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-11-12T05:00:29Z</dc:date>
    <item>
      <title>Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400270#M1155681</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;In what situations would there be additional records after Left Join?&lt;/P&gt;&lt;P&gt;Of course this is not what I want, but I have this issue.&lt;/P&gt;&lt;P&gt;I used Distinct, Where Exists in the Left Join load, but it didn't help.&lt;/P&gt;&lt;P&gt;There are still more records in the left table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 12:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400270#M1155681</guid>
      <dc:creator />
      <dc:date>2013-03-02T12:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400271#M1155683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In any case where there are multiple matching records in the table on the right side of the join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Key, Value1&lt;/P&gt;&lt;P&gt;A, 1&lt;/P&gt;&lt;P&gt;B, 2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join &lt;/P&gt;&lt;P&gt;load Key inline [&lt;/P&gt;&lt;P&gt;Key, Value2&lt;/P&gt;&lt;P&gt;A, 10&lt;/P&gt;&lt;P&gt;A, 12&lt;/P&gt;&lt;P&gt;B, 15&lt;/P&gt;&lt;P&gt;B, 16&lt;/P&gt;&lt;P&gt;B, 20&lt;/P&gt;&lt;P&gt;C, 30];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting table will look like&lt;/P&gt;&lt;P&gt;Key, Value1&lt;/P&gt;&lt;P&gt;A, 1&lt;/P&gt;&lt;P&gt;A, 1&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you joined both tables but also loaded the field Value2 you would have the same number of records, but no duplicate rows since the added Value2 field would make the records unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 13:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400271#M1155683</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-02T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400272#M1155685</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;I don't quite understand your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My left table doesn't have unique key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;[Customer Name]&lt;/P&gt;&lt;P&gt;Balance&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add a customer number, from a file which has only customer number and customer name fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my left join is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Data)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;[Customer Name],&lt;/P&gt;&lt;P&gt; [Customer Number] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expected to have the additional field&amp;nbsp; [Customer Number]&amp;nbsp; in Data table.&lt;/P&gt;&lt;P&gt;I do, but there are additional rows. Doesn't look cartesian, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate your help here!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 13:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400272#M1155685</guid>
      <dc:creator />
      <dc:date>2013-03-02T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400273#M1155686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;It's not a solution. It's an answer to your question: &lt;EM style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;In what situations would there be additional records after Left Join?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Ok, based on you last comment I think what happens is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Data:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;load * inline [&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Key, Value1&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 1&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 2&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B, 2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;left join&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;load * inline [&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Key, Value2&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 10&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 12&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B, 15&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B, 16&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B, 20&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;C, 30];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;The resulting table:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Key, Value1, Value2&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 1, 10&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 1, 12&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 2, 10&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A, 2, 12&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B, 2, 15&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B, 2, 16&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B, 2, 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every A from the first table is joined with every A from the second table. It's not a cartesian product because it still matches on value, but you do get a lot more records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You seem to indicate that that's not what you intend. So joining on only Customer Name is not enough. You'll have to add something to make the logic for the join explicit. Qlikview can't read minds yet so you have to tell it how to join the tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 13:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400273#M1155686</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-02T13:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400274#M1155687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, both tables have duplicate keys.&lt;/P&gt;&lt;P&gt;In my case, the 2nd table has a unique key (only one cusomer number per customer name). &lt;/P&gt;&lt;P&gt;Does it make a difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 14:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400274#M1155687</guid>
      <dc:creator />
      <dc:date>2013-03-02T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400275#M1155688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm so sorry!&lt;/P&gt;&lt;P&gt;You were right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked and saw that I do have duplicate values &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your prompt reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 14:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400275#M1155688</guid>
      <dc:creator />
      <dc:date>2013-03-02T14:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400276#M1155689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you it was helpful. How to avoid duplicates, when left join is used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400276#M1155689</guid>
      <dc:creator />
      <dc:date>2014-08-28T15:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400277#M1155690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi buddy,&lt;/P&gt;&lt;P&gt;I have got the same scenario in this case I want to select only one record from the second table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 04:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400277#M1155690</guid>
      <dc:creator />
      <dc:date>2014-11-12T04:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join duplicates records</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400278#M1155691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Key, Value2&lt;/P&gt;&lt;P&gt;A, 10&lt;/P&gt;&lt;P&gt;A, 12&lt;/P&gt;&lt;P&gt;B, 15&lt;/P&gt;&lt;P&gt;B, 16&lt;/P&gt;&lt;P&gt;B, 20&lt;/P&gt;&lt;P&gt;C, 30] Where Not Exists(Key);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right join(Table2) &lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Key, Value1&lt;/P&gt;&lt;P&gt;A, 1&lt;/P&gt;&lt;P&gt;A, 2&lt;/P&gt;&lt;P&gt;B, 2];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 05:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-duplicates-records/m-p/400278#M1155691</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-12T05:00:29Z</dc:date>
    </item>
  </channel>
</rss>

