<?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: Join vs Keep in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108266#M910429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;Thanks for the detailed explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 06:58:18 GMT</pubDate>
    <dc:creator>riyazasma1009</dc:creator>
    <dc:date>2016-06-16T06:58:18Z</dc:date>
    <item>
      <title>Join vs Keep</title>
      <link>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108262#M910425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain me with use cases as to under what conditions should join or keep be used.&lt;/P&gt;&lt;P&gt;I am aware that join creates a single table as output and keep stores the result in two different tables in the data model. But I am not aware of any practical use case where join or keep can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain with some practical use cases as to under what conditions join or keep should be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108262#M910425</guid>
      <dc:creator>riyazasma1009</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Join vs Keep</title>
      <link>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108263#M910426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with this thread (more to find when searching the forum for JOIN and KEEP):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/39177"&gt;Understanding Join, Keep and Concatenate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/781843"&gt;Re: when to use Join and when to use Keep ?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108263#M910426</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-14T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Join vs Keep</title>
      <link>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108264#M910427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Asma, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't act as Lazy, Follow Swuehl manner. I followed same one only...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108264#M910427</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-06-14T13:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Join vs Keep</title>
      <link>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108265#M910428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asma,&lt;/P&gt;&lt;P&gt;Here's a practical use for KEEP. Imagine you have a source table of customers and a source table of orders that you don't want to combine into one table in your QV model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to load all orders for product &lt;EM&gt;ABC&lt;/EM&gt; bought by customers from Country &lt;EM&gt;XYZ&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's 'keep' things simple and say there is only one product per order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CustomerID,&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident customers WHERE Country = XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CustomerID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Resident Orders WHERE Product = ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will load Customers who may not have bought ABC and you may have orders for product ABC with no corresponding Customer record because these orders were bought from a country other than XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead if you try&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Customers:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CustomerID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident customers WHERE Country = XYZ;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Orders:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Inner Keep(&lt;SPAN style="font-size: 13.3333px;"&gt;Customers&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CustomerID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident Orders WHERE Product = ABC;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Qlikview will drop records from Customers who did not order product &lt;EM&gt;ABC&lt;/EM&gt; and will only load Orders placed by Customers from &lt;EM&gt;XYZ&lt;/EM&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It's exactly like an inner join except the two tables are not combined in the data model.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;You can replace &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Inner&lt;/STRONG&gt; Keep(&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;Customers&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;)&lt;/EM&gt; with &lt;EM&gt;&lt;STRONG&gt;Left &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Keep(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Customers&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;)&lt;/EM&gt; then no customer records will be removed and only orders for &lt;EM&gt;ABC&lt;/EM&gt; associated with these customers&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt; will load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Right&lt;/STRONG&gt; Keep(Customers)&lt;/EM&gt; will load all orders for product &lt;EM&gt;ABC&lt;/EM&gt; but only customers who bought &lt;EM&gt;ABC&lt;/EM&gt; will be remain in the Customers table.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;All this is analogous to Inner, Left and Right Joins except the tables are kept separate.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Cheers&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 14:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108265#M910428</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-06-14T14:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Join vs Keep</title>
      <link>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108266#M910429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;Thanks for the detailed explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 06:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-vs-Keep/m-p/1108266#M910429</guid>
      <dc:creator>riyazasma1009</dc:creator>
      <dc:date>2016-06-16T06:58:18Z</dc:date>
    </item>
  </channel>
</rss>

