<?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: which Inner join will give better performance? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756090#M327552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain why this query will take more time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 09:21:12 GMT</pubDate>
    <dc:creator>former_member268961</dc:creator>
    <dc:date>2006-12-15T09:21:12Z</dc:date>
    <item>
      <title>which Inner join will give better performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756086#M327548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i posted two queries one with nested inner join or flat.&lt;/P&gt;&lt;P&gt;out of this two quries which one will give better performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1)flat iiner join:&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;   a~col1 &lt;/P&gt;&lt;P&gt;   b~col2&lt;/P&gt;&lt;P&gt;   c~col3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from (  table1 as a&lt;/P&gt;&lt;P&gt;INNER JOIN  table2 as b on b&lt;SUB&gt;col2 = a&lt;/SUB&gt;col1&lt;/P&gt;&lt;P&gt;INNER JOIN tabke3 as c on  c&lt;SUB&gt;col3 = a&lt;/SUB&gt;col1 )&lt;/P&gt;&lt;P&gt;into corresponding fields of table lt_tab &lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;   a~col11  = 'AB' AND&lt;/P&gt;&lt;P&gt;   b~col22  = 'CD' AND&lt;/P&gt;&lt;P&gt;   c~col33  = 'EF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2) with nested inner join:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;   a~col1 &lt;/P&gt;&lt;P&gt;   b~col2&lt;/P&gt;&lt;P&gt;   c~col3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from ( ( table1 as a&lt;/P&gt;&lt;P&gt;INNER JOIN  table2 as b on b&lt;SUB&gt;col2 = a&lt;/SUB&gt;col1 )&lt;/P&gt;&lt;P&gt;INNER JOIN tabke3 as c on  c&lt;SUB&gt;col3 = a&lt;/SUB&gt;col1 )&lt;/P&gt;&lt;P&gt;into corresponding fields of table lt_tab &lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;   a~col11  = 'AB' AND&lt;/P&gt;&lt;P&gt;   b~col22  = 'CD' AND&lt;/P&gt;&lt;P&gt;   c~col33  = 'EF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Table1 is index using col11 ( 200,000 enteries )&lt;/P&gt;&lt;P&gt;         Table2 ( 50,000 enteries )&lt;/P&gt;&lt;P&gt;         Table3  is index using col3 ( 200,000 enteries )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756086#M327548</guid>
      <dc:creator>former_member268961</dc:creator>
      <dc:date>2006-12-15T09:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: which Inner join will give better performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756087#M327549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope both consume same time to execute. But flat inner join will be fast rather than nested inner join. But it is negligable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using more than 2 table in joins, better to create a view and retrieve the data. It will give effective results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756087#M327549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: which Inner join will give better performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756088#M327550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhupal Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why are you saying  the first will be faster?can you  explain bit more???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756088#M327550</guid>
      <dc:creator>former_member268961</dc:creator>
      <dc:date>2006-12-15T09:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: which Inner join will give better performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756089#M327551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both of the inner join statement are same and the code that you have written ll take the appropriate time to access the data from the database,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756089#M327551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: which Inner join will give better performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756090#M327552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain why this query will take more time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756090#M327552</guid>
      <dc:creator>former_member268961</dc:creator>
      <dc:date>2006-12-15T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: which Inner join will give better performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756091#M327553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put eacgh query in separate program along with exact table name and run in se30 and check the performance .youu will find which one is giving better performance after analysis them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debjani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756091#M327553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: which Inner join will give better performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756092#M327554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the statement GET RUN TIME - and determine execution time for these two queries. My opinion is the first one little bit fast rather than second. It is almost same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-inner-join-will-give-better-performance/m-p/1756092#M327554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:25:49Z</dc:date>
    </item>
  </channel>
</rss>

