<?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 and left keep real time scenario in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273819#M868716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I guess there is not general rule of thumb here, but one scenario where I have joined in the past is when I way to many tables and I wanted to clear the clutter to see the data model clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I have heard that a single fact table performs slightly better than a star schema when the data is large (although I have tested this to be not true all the time), but if you test tells you that a joined table is going to more efficient and you don't mind extra time for joining while reloading, then you know to join the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, each scenario is different and its very difficult to generalize. Would love to hear what others have to say here -&amp;gt; &lt;A href="https://community.qlik.com/qlik-users/2226"&gt;johnw&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/3540"&gt;pcammaert&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 20:22:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-02T20:22:56Z</dc:date>
    <item>
      <title>left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273812#M868709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know we use LEFT JOIN for one to one and KEEP for one to many relations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know one real time scenario implementation for LEFT JOIN and one REAL TIME scenario implementation for LEFT KEEP &lt;SPAN style="font-size: 13.3333px;"&gt;while designing data model&lt;/SPAN&gt;&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/left-join-and-left-keep-real-time-scenario/m-p/1273812#M868709</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273813#M868710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;LOAD Cust_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First_Name as Cust_First_Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last_Name as Cust_Last_Name&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\BASE QVD\Base_Customers.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;//loading data from Order Details.Qvd&lt;/P&gt;&lt;P&gt;LOAD Order_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prod_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U.Price&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\BASE QVD\Base_Order Details.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&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;Temp_DimensionsWithoutFacts:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;right keep(Customers)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Distinct Cust_ID&lt;/P&gt;&lt;P&gt;Resident Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp_DimensionsWithoutFacts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited sorry : I have given right keep ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273813#M868710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-02T19:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273814#M868711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;The above post demonstrates exactly how each works and is easy to understand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only use keep we you want to retain matching data from only one table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273814#M868711</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-02T19:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273815#M868712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the real time scenario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273815#M868712</guid>
      <dc:creator />
      <dc:date>2016-12-02T19:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273816#M868713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;Cust_ID&amp;gt;&lt;/P&gt;&lt;P&gt;Temp_DimensionsWithoutFacts:&lt;/P&gt;&lt;P&gt;RIGHT KEEP (Customers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Distinct Cust_ID&lt;/P&gt;&lt;P&gt;Resident Orders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273816#M868713</guid>
      <dc:creator />
      <dc:date>2016-12-02T20:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273817#M868714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Vibhu Sharma wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I know we use LEFT JOIN for one to one and KEEP for one to many relations&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't think that is always true. I mostly decide to Join or Keep based on the fact if I want to merge the two tables into one or keep them as separate tables. There are times when I have used Left Keep when the relation was One-to-One and I have also left joined when the relation was One-to-Many (although this would be rare).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273817#M868714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-02T20:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273818#M868715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in which scenario you have merged two tables into one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273818#M868715</guid>
      <dc:creator />
      <dc:date>2016-12-02T20:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273819#M868716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I guess there is not general rule of thumb here, but one scenario where I have joined in the past is when I way to many tables and I wanted to clear the clutter to see the data model clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I have heard that a single fact table performs slightly better than a star schema when the data is large (although I have tested this to be not true all the time), but if you test tells you that a joined table is going to more efficient and you don't mind extra time for joining while reloading, then you know to join the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, each scenario is different and its very difficult to generalize. Would love to hear what others have to say here -&amp;gt; &lt;A href="https://community.qlik.com/qlik-users/2226"&gt;johnw&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/3540"&gt;pcammaert&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273819#M868716</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-02T20:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: left join and left keep real time scenario</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273820#M868717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a guilty confession - I don't use KEEP. I don't even know the syntax. I guess this is as good a time to learn as any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...several minutes pass...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, that's easy. So why haven't I been using that for the past 10 years?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess if I needed a left or right keep, I just loaded my tables in the correct order and did a where exists, which doesn't take any more code, and I'm guessing doesn't take any more time. For inner keep, well, I guess I must just inner join, as I can't remember ever wanting the functionality of an inner keep, even if it seems clever. Heck, I almost never use right or outer join. Just inner and left join. That's almost all I do in practice. I'm not saying that's the right way to go, just that it's the habit I'm in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as when I merge tables into one vs. leaving them separate, it's often as simple as "how many fields from this table do I need?" If it's just one, join or map. If it's lots, leave them separate. Two or three, eh, I'll decide based on if it "feels" like the data deserves a separate table or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I don't like in my data models is a whole bunch of tables that just hold a little bit of dimensional data. I hate seeing description tables, say. Like I would never create a Customers table if all that was on it was a Customer ID and a Customer Name. I'd join or map the customer name back onto the main table. But if I had all sorts of customer data - address, customer sales representative, billing preferences, who knows what else - then I would almost certainly create a separate Customers table. I almost always create a separate Calendar table if I'm dealing with dates, but I have no good justification for doing so vs. joining it onto the main table. Maybe just so that I'm always handling dates the same way and there are no surprises.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also never dealt with real time data. All of our loads are periodic, and I don't think any load more often than hourly, but a lot load hourly, or at least hourly during work hours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 21:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-left-keep-real-time-scenario/m-p/1273820#M868717</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-12-02T21:21:16Z</dc:date>
    </item>
  </channel>
</rss>

