<?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>Question Re: Inner Join vs Left Outer Join in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/inner-join-vs-left-outer-join/qaa-p/11429166#M4247880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giorgos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You theoretical view on &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Inner Join is faster than Left Outer Join is not correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From performance point of view, the Left outer join is always faster than Inner join. Inner join is usually slower due to the fact that the join is always executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun.M.D &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2016 05:57:46 GMT</pubDate>
    <dc:creator>arun_kumar52</dc:creator>
    <dc:date>2016-01-06T05:57:46Z</dc:date>
    <item>
      <title>Inner Join vs Left Outer Join</title>
      <link>https://community.sap.com/t5/technology-q-a/inner-join-vs-left-outer-join/qaq-p/11429165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a short question: I have two ADSOs, where the first one has a higher granularity and the second one goes into more detail.&lt;/P&gt;&lt;P&gt;So all the data from the left one exist in the right one with lower granularity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although in theory Inner Join is faster than Left Outer Join, in this scenario it seems that Left Outer Join is faster after my performance analysis in both RSRT and Visualize plan in HANA Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share your expertise regarding the use cases of Inner vs Left Outer Join? Is it by default Inner Join faster or does it depend on the case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 18:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inner-join-vs-left-outer-join/qaq-p/11429165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-08T18:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join vs Left Outer Join</title>
      <link>https://community.sap.com/t5/technology-q-a/inner-join-vs-left-outer-join/qaa-p/11429166#M4247880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giorgos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You theoretical view on &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Inner Join is faster than Left Outer Join is not correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From performance point of view, the Left outer join is always faster than Inner join. Inner join is usually slower due to the fact that the join is always executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun.M.D &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 05:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inner-join-vs-left-outer-join/qaa-p/11429166#M4247880</guid>
      <dc:creator>arun_kumar52</dc:creator>
      <dc:date>2016-01-06T05:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join vs Left Outer Join</title>
      <link>https://community.sap.com/t5/technology-q-a/inner-join-vs-left-outer-join/qaa-p/11429167#M4247881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Giorgos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If referential integrity is ensured then Inner Join is much faster that Outer Join where the right table is not&lt;/P&gt;&lt;P&gt;checked if no field from the right table is requested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means that the Referential Joins will be only executed, when fields from both tables are requested. Therefore, if a field is selected from the right table it will act similar to inner join, and if no fields from the right table is selected it will act similar to a left outer join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From performance perspective, the Left Outer Join are almost equally fast as Referential Join, while the Inner Join is usually slower due to the fact, that the&lt;/P&gt;&lt;P&gt;join is always executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below link has got more details on the joins,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.saphana.com/2011/10/17/sql-join-union-what-you-ever-wanted-to-know1/" title="https://blogs.saphana.com/2011/10/17/sql-join-union-what-you-ever-wanted-to-know1/"&gt;https://blogs.saphana.com/2011/10/17/sql-join-union-what-you-ever-wanted-to-know1/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinoth V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inner-join-vs-left-outer-join/qaa-p/11429167#M4247881</guid>
      <dc:creator>former_member212236</dc:creator>
      <dc:date>2016-01-25T12:15:59Z</dc:date>
    </item>
  </channel>
</rss>

