<?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 JOIN: 'Same' code, different results? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/JOIN-Same-code-different-results/m-p/366480#M702184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was recently struggling with a piece of code joining customer data to sales data.&lt;/P&gt;&lt;P&gt;I finally managed to get it work, but I still wonder about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you see two versions of what I consider to be the same code.&lt;/P&gt;&lt;P&gt;V1 is working as expected, V2 not.&lt;/P&gt;&lt;P&gt;(Simplified you can imagine Sales having three columns: TransactionID, Revenue, CustomerID)&lt;/P&gt;&lt;P&gt;V2 'ignored' the 'distinct', thus the number of transactions got multiplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question: What is the (internal) difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// - V1 -----------------------------------------------&lt;BR /&gt;C:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName&lt;BR /&gt;Resident Customers;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join(Sales)&lt;BR /&gt;load * Resident C;&lt;BR /&gt;drop table C;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// - V2 -----------------------------------------------&lt;BR /&gt;left join (Sales)&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName&lt;BR /&gt;Resident Customers; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any ideas,&lt;/P&gt;&lt;P&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 07:30:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-25T07:30:04Z</dc:date>
    <item>
      <title>JOIN: 'Same' code, different results?</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-Same-code-different-results/m-p/366480#M702184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was recently struggling with a piece of code joining customer data to sales data.&lt;/P&gt;&lt;P&gt;I finally managed to get it work, but I still wonder about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you see two versions of what I consider to be the same code.&lt;/P&gt;&lt;P&gt;V1 is working as expected, V2 not.&lt;/P&gt;&lt;P&gt;(Simplified you can imagine Sales having three columns: TransactionID, Revenue, CustomerID)&lt;/P&gt;&lt;P&gt;V2 'ignored' the 'distinct', thus the number of transactions got multiplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question: What is the (internal) difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// - V1 -----------------------------------------------&lt;BR /&gt;C:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName&lt;BR /&gt;Resident Customers;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join(Sales)&lt;BR /&gt;load * Resident C;&lt;BR /&gt;drop table C;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// - V2 -----------------------------------------------&lt;BR /&gt;left join (Sales)&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName&lt;BR /&gt;Resident Customers; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any ideas,&lt;/P&gt;&lt;P&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 07:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-Same-code-different-results/m-p/366480#M702184</guid>
      <dc:creator />
      <dc:date>2012-07-25T07:30:04Z</dc:date>
    </item>
  </channel>
</rss>

