<?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: Can someone please explain this behaviour? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129861#M371421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the question stem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;1 - When performing a left join I get "tablename-1". See image below.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;2 - When perfomring a left join I am getting the same number of records.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 08:55:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-02T08:55:06Z</dc:date>
    <item>
      <title>Can someone please explain this behaviour?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129859#M371419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading two tables in Qlikview and I getting two strange results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - When performing a left join I get "tablename-1". See image below.&lt;/P&gt;&lt;P&gt;2 - When perfomring a left join I am getting the same number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below I have posted the &lt;STRONG&gt;script execution dialog&lt;/STRONG&gt; and the &lt;STRONG&gt;script itself&lt;/STRONG&gt;. Can someone shed some light on the issue? if there is an issue at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136256_Untitled.png" style="height: 505px; width: 620px;" /&gt;&lt;IMG alt="Untitled_2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/136257_Untitled_2.png" style="height: 653px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 11:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129859#M371419</guid>
      <dc:creator />
      <dc:date>2016-09-01T11:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please explain this behaviour?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129860#M371420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the issue you area facing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129860#M371420</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-01T15:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please explain this behaviour?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129861#M371421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the question stem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;1 - When performing a left join I get "tablename-1". See image below.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;2 - When perfomring a left join I am getting the same number of records.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 08:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129861#M371421</guid>
      <dc:creator />
      <dc:date>2016-09-02T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please explain this behaviour?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129862#M371422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are getting the tablename-1 as you don't name the table in the script but this is usual behaviour and nothing to worry about as you are joining the table. If you didn't join it, it would be named that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for getting the same number of records - your join is a one to many so when you join the records from Finance_OrderItemHeader.qvd in the final load, you are loading the many rows from that table as they have the same %Key_ItemNumber. This is the same table you load at the top and then drop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you trying to achieve here? If you want distinct rows, then ensure you use the Distinct keyword. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 09:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129862#M371422</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2016-09-02T09:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please explain this behaviour?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129863#M371423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Very helpful. I now understand why the table is called tablename-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the second part of my query I ran a test with dummy data and it turns out its normal behaviour but in my opinion &lt;STRONG&gt;very misleading&lt;/STRONG&gt;. When qlikview performed the left join I was expecting to get the only the number of rows that matched not the number of rows of the entire table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran a quick test with inline tables please see below. I left join a table and for that task in the dialog box I get the entire number of records not only the number of records that were joined. In this case it only joined 5 records but it still showed 10 records fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;//=========================================================================================&lt;/P&gt;
&lt;P&gt;// LOAD ORDER ITEM HEADER&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;Order_item_header:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; key_itemnumber, value1&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; 4, d&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, e&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, f&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, g&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, h&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, i&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, j&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;// LOAD EXCHANGE RATE&lt;/P&gt;
&lt;P&gt;//=========================================================================================&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Exchange_rate:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; key_pblid, key_itemnumber, value2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,1, a&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,2, b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,3, c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4,4, d&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,5, e&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 6,11,k&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 7,12,l&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;WHERE EXISTS(key_itemnumber);&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;// DROP TABLE&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;DROP TABLE Order_item_header;&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;// LEFT JOIN ORDER ITEM HEADER TO EXCHANGE RATE&lt;/P&gt;
&lt;P&gt;//=========================================================================================&lt;/P&gt;
&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14728115355529357 jive_text_macro" jivemacro_uid="_14728115355529357"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN(Exchange_rate)&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; key_itemnumber, value1&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; 4, d&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, e&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, f&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, g&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, h&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, i&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, j&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136346_Untitled.png" style="height: 475px; width: 620px;" /&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/136347_Capture.PNG" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 10:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-please-explain-this-behaviour/m-p/1129863#M371423</guid>
      <dc:creator />
      <dc:date>2016-09-02T10:29:39Z</dc:date>
    </item>
  </channel>
</rss>

