<?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 join vs. view in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915340#M1330488</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;I have a doubt regarding the advantage of views over joins. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose my database view has 4 db tables in it ... say A B C D&lt;/P&gt;&lt;P&gt;what i require is i need to retrieve some data which is present in tables A &amp;amp; C ...&lt;/P&gt;&lt;P&gt;in this case .. which is more efficient ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join on A &amp;amp; C or the view ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 04:20:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-16T04:20:24Z</dc:date>
    <item>
      <title>join vs. view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915340#M1330488</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;I have a doubt regarding the advantage of views over joins. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose my database view has 4 db tables in it ... say A B C D&lt;/P&gt;&lt;P&gt;what i require is i need to retrieve some data which is present in tables A &amp;amp; C ...&lt;/P&gt;&lt;P&gt;in this case .. which is more efficient ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join on A &amp;amp; C or the view ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 04:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915340#M1330488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T04:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: join vs. view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915341#M1330489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your requirement, JOIN will work faster as it will access only two table as per condition you pass.&lt;/P&gt;&lt;P&gt;But VIEW is associated with four tables, so put more load on database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915341#M1330489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T05:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: join vs. view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915342#M1330490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this link.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="540966"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;P Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915342#M1330490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T05:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: join vs. view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915343#M1330491</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;Join statement can be used when U need to join 2 or 3 small tables...&lt;/P&gt;&lt;P&gt;if U join 2 large dbtab then peformance will reduce..So view is always better !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur can case to join A &amp;amp; C it depends on the size of the dbtab, as per &lt;/P&gt;&lt;P&gt;my opinion please use view for better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Kathik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 06:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915343#M1330491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T06:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: join vs. view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915344#M1330492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a performance standpoint, If you have a view on tables A, B , C and D and would like to retieve data only from A and C it is advisable to use a Join rather than using the View.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Using the view will force the optimizer to read the data unnecessarily from B and D and sometimes may force the Database Optimizer to perform a Full table scan on B and D ( depending on join Conditions). Also you will need to consider that when you read data from View, at the Database interface level the Optimizer will construct a Join on all the table to read data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have further queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasuna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 11:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915344#M1330492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T11:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: join vs. view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915345#M1330493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View- A,B,C,D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join - A &amp;amp; C  - In this case regarding performance &lt;STRONG&gt;join is good&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join - A,B,C,D - In this case regarding performance &lt;STRONG&gt;both view and join are same&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why we design View : The answer is &lt;STRONG&gt;Reusability&lt;/STRONG&gt; and developer need not write the join statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes you clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sajid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shaik sajid on Jul 16, 2009 2:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 12:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-vs-view/m-p/5915345#M1330493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T12:05:30Z</dc:date>
    </item>
  </channel>
</rss>

