<?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 When to use Keep  and When to use Join? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/When-to-use-Keep-and-When-to-use-Join/m-p/1505763#M600462</link>
    <description>&lt;P&gt;Tell me anyone.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Hussain.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 07:01:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-14T07:01:01Z</dc:date>
    <item>
      <title>When to use Keep  and When to use Join?</title>
      <link>https://community.qlik.com/t5/QlikView/When-to-use-Keep-and-When-to-use-Join/m-p/1505763#M600462</link>
      <description>&lt;P&gt;Tell me anyone.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Hussain.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 07:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-to-use-Keep-and-When-to-use-Join/m-p/1505763#M600462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T07:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: When to use Keep  and When to use Join?</title>
      <link>https://community.qlik.com/t5/QlikView/When-to-use-Keep-and-When-to-use-Join/m-p/1505778#M600463</link>
      <description>&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;You have table1 (100 &lt;SPAN&gt;rows&amp;nbsp;&lt;/SPAN&gt;) and table2 (millions of &lt;SPAN&gt;rows&amp;nbsp;&lt;/SPAN&gt;). If you want to remove unmatched &lt;SPAN&gt;rows&amp;nbsp;&lt;/SPAN&gt;from the table2 as millions of &lt;SPAN&gt;rows&amp;nbsp;&lt;/SPAN&gt;consume much space/memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;Load * from Table1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;INNER KEEP&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;Load * from Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;This will give out put with 100 rows in Table1 and 100 matched &lt;SPAN&gt;rows&amp;nbsp;in Table2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="bnf_token"&gt;(inner | left | right)&lt;/SPAN&gt;&lt;SPAN class="script_token"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;keep [&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;(tablename )&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="script_token"&gt;]&lt;/SPAN&gt;( loadstatement | selectstatement )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;keep&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;prefix must be preceded by one of the prefixes&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;inner&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;left&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;right&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;The explicit&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;join&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;prefix in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="CommonComponentsQlikView"&gt;QlikView&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;script language performs a full join of the two tables. The result is one table. In many cases such joins will result in very large tables. One of the main features of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="CommonComponentsQlikView"&gt;QlikView&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is its ability to make associations between multiple tables instead of joining them, which greatly reduces memory usage, increases processing speed and offers enormous flexibility. Explicit joins should therefore generally be avoided in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="CommonComponentsQlikView"&gt;QlikView&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;scripts. The keep functionality was designed to reduce the number of cases where explicit joins needs to be used.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 07:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-to-use-Keep-and-When-to-use-Join/m-p/1505778#M600463</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-11-14T07:13:53Z</dc:date>
    </item>
  </channel>
</rss>

