<?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 outer join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024038#M714981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try inner join&lt;/P&gt;&lt;P&gt;when you use left join&lt;/P&gt;&lt;P&gt;you should pay more attention to&lt;/P&gt;&lt;P&gt;where cause can not refer to the fields which include in the left join table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 05:53:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T05:53:28Z</dc:date>
    <item>
      <title>left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024034#M714977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to omit records from the left table in a left outer join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 02:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024034#M714977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T02:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024035#M714978</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;You can restrict the record in WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 02:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024035#M714978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T02:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024036#M714979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of an outer join. Here is there is no match in MARC, it will still retrieve the MARA data.&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;&lt;/P&gt;&lt;P&gt;data: begin of imatnr occurs 0,&lt;/P&gt;&lt;P&gt;      matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;      mtart type mara-mtart,&lt;/P&gt;&lt;P&gt;      werks type marc-werks,&lt;/P&gt;&lt;P&gt;      dispo type marc-dispo,&lt;/P&gt;&lt;P&gt;      end of imatnr.&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; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   select mara&lt;SUB&gt;matnr mara&lt;/SUB&gt;mtart marc&lt;SUB&gt;werks marc&lt;/SUB&gt;dispo&lt;/P&gt;&lt;P&gt;            into table imatnr&lt;/P&gt;&lt;P&gt;                   from mara&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;                     left outer join marc&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;                             on mara&lt;SUB&gt;matnr = marc&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;                                       up to 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MARA~MATNR&lt;/P&gt;&lt;P&gt;MARA~MTART&lt;/P&gt;&lt;P&gt;MARC~WERKS&lt;/P&gt;&lt;P&gt;INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;FROM MARA LEFT OUTER JOIN MARC&lt;/P&gt;&lt;P&gt;ON MARA&lt;SUB&gt;MATNR EQ MARC&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;WHERE MARA~MATNR IN S_MATNR. &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;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;INNER JOIN: Retrieves customers with orders only. For example, you want to determine the amount ordered by each customer and you only want to see those who have ordered something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Customers.&lt;STRONG&gt;, Orders.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;FROM Customers INNER JOIN Orders ON Customers.CustomerID =&lt;/P&gt;&lt;P&gt;Orders.CustomerID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN: Retrieves all customers with or without orders. Order data for customers without orders appears as NULL values. For example, you want to determine the amount ordered by each customer and you need to see who has not ordered anything as well. You can also see the LEFT OUTER JOIN as a mirror image of the RIGHT OUTER JOIN if you switch the side of each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Customers.&lt;STRONG&gt;, Orders.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;FROM Customers LEFT OUTER JOIN Orders ON Customers.CustomerID =&lt;/P&gt;&lt;P&gt;Orders.CustomerID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN: Retrieves all orders with or without matching customer records. Customer data for orders without customers appears as NULL values. For example, you want to determine if there are any orders in the data with undefined CustomerID values (say, after a conversion or something like it). You can also see the RIGHT OUTER JOIN as a mirror image of the LEFT OUTER JOIN if you switch the side of each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Customers.&lt;STRONG&gt;, Orders.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;FROM Customers RIGHT OUTER JOIN Orders ON Customers.CustomerID =&lt;/P&gt;&lt;P&gt;Orders.CustomerID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting set for inner join &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inner join joins the columns of every selected line on the left- hand side with the columns of all lines on the right-hand side that jointly fulfil the join_cond condition. A line in the resulting set is created for every such line on the right-hand side. The content of the column on the left-hand side may be duplicated in this case. If none of the lines on the right-hand side fulfils the join_cond condition, no line is created in the resulting set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting set for outer join &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The outer join basically creates the same resulting set as the inner join, with the difference that at least one line is created in the resulting set for every selected line on the left-hand side, even if no line on the right-hand side fulfils the join_cond condition. The columns on the right-hand side that do not fulfil the join_cond condition are filled with null values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below SAP help.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful.........&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 02:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024036#M714979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T02:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024037#M714980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should pay more attention to&lt;/P&gt;&lt;P&gt;where cause can not refer to the fields which include in the left join table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 05:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024037#M714980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T05:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024038#M714981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try inner join&lt;/P&gt;&lt;P&gt;when you use left join&lt;/P&gt;&lt;P&gt;you should pay more attention to&lt;/P&gt;&lt;P&gt;where cause can not refer to the fields which include in the left join table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 05:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join/m-p/3024038#M714981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T05:53:28Z</dc:date>
    </item>
  </channel>
</rss>

