<?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 with distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761235#M660105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;distinct is applied to resulting data set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;google for&lt;/P&gt;&lt;P&gt;qlikview beware of distinct oleg naturalsynergies &lt;/P&gt;&lt;P&gt;and you'll find details and example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Mar 2015 10:45:19 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-03-21T10:45:19Z</dc:date>
    <item>
      <title>Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761229#M660093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to understand the different between Left Join and Left Join with distinct keyword with the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;With distinct keyword:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;left join(tab1)&lt;/P&gt;&lt;P&gt;LOAD distinct * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, aa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, bb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, cc&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;STRONG&gt;without distinct keyword:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;tab1:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, value&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;left join(tab1)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, field&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, aa&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, bb&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, cc&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results are different here. The final table has only three records with distinct but 4 without distinct.&lt;/P&gt;&lt;P&gt;My understanding is that, 2nd inline load should distinctly load data and then join with tab1, but it is not doing it instead it is taking distinct on the final resulted table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i write the script as:&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;tab2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD distinct * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, aa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, bb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, cc&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(tab1) load * Resident tab2;&lt;/P&gt;&lt;P&gt;drop table tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the final table will have 4 records.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Please help me understand the execution difference of left join with distinct in Qlikview and SQL.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 20:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761229#M660093</guid>
      <dc:creator />
      <dc:date>2015-03-20T20:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761230#M660096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good eye brother. I would be curious to know why the two spits out different results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 20:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761230#M660096</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-20T20:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761231#M660097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same happened here, version 11.20SR10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It´s really weird&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 20:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761231#M660097</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-03-20T20:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761232#M660100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anosh,&lt;/P&gt;&lt;P&gt;When you use disting with join or concatenate in QlikView it works for all tables which are joined or concatenated. Istead of this In SQL it work only for table where you use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to prove it you can try to do concatenate in qlikview using disting for one table. You will see that it apply for all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;tab2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD distinct * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, aa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, bb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, cc&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(tab1) load * Resident tab2;&lt;/P&gt;&lt;P&gt;drop table tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disting apply only for one table because &lt;SPAN style="font-size: 10pt;"&gt;tab2 is loaded without connection (join or concatenate) to any other table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I know from my own experience. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 20:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761232#M660100</guid>
      <dc:creator />
      <dc:date>2015-03-20T20:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761233#M660101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Taras for your response but I don't understand any benefit of doing distinct after joining the table. As Qlikview process data sequentially, its hard to digest this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 21:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761233#M660101</guid>
      <dc:creator />
      <dc:date>2015-03-20T21:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761234#M660103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think it follows a bit the logic that you should not have duplicated records in your table and might be related to the inner architecture of Qlik ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyhow recommend to rather use MAPPING than JOIN - results are more predictable and you may already anticipate for possible mismatches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 09:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761234#M660103</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-21T09:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761235#M660105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;distinct is applied to resulting data set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;google for&lt;/P&gt;&lt;P&gt;qlikview beware of distinct oleg naturalsynergies &lt;/P&gt;&lt;P&gt;and you'll find details and example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 10:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761235#M660105</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-21T10:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761236#M660107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Distinct is applied on the resulting set. Have a look at this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.naturalsynergies.com/q-tip-1-beware-of-distinct/" title="http://www.naturalsynergies.com/q-tip-1-beware-of-distinct/"&gt;QlikView Blog Q-Tip #1 - Beware of DISTINCT! &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 12:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761236#M660107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-21T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761237#M660108</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;Also read the go for below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.qlikfix.com/2013/07/30/distinct-can-be-deceiving/" rel="nofollow"&gt;http://www.qlikfix.com/2013/07/30/distinct-can-be-deceiving/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 12:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-distinct/m-p/761237#M660108</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-03-21T12:31:37Z</dc:date>
    </item>
  </channel>
</rss>

