<?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: Problem with left outer join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join/m-p/1993930#M405166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A LEFT OUTER JOIN is one of the JOIN operations that allow you to specify a join clause. It preserves the unmatched rows from the first (left) table, joining them with a NULL row in the shape of the second (right) table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 12:54:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-21T12:54:36Z</dc:date>
    <item>
      <title>Problem with left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join/m-p/1993928#M405164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We defined an InfoSet with only two tables. Between these tables there is a left outer join (SQ02).&lt;/P&gt;&lt;P&gt;Then we defined an InfoSet-Query (SQ01) with selections on both tables.&lt;/P&gt;&lt;P&gt;The result should be a table with all data which can be find in the right table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- But we only get the data, if there is a suitable value in the right table.&lt;/P&gt;&lt;P&gt;  - but this should be the result of an inner join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Who can help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join/m-p/1993928#M405164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join/m-p/1993929#M405165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that should work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some examples... they may help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--match cities to countries&lt;/P&gt;&lt;P&gt;SELECT CITIES.COUNTRY, REGION &lt;/P&gt;&lt;P&gt;FROM Countries &lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN Cities&lt;/P&gt;&lt;P&gt;ON CITY_ID=CITY_ID&lt;/P&gt;&lt;P&gt;WHERE REGION = 'Asia';&lt;/P&gt;&lt;P&gt;-- use the synonymous syntax, RIGHT JOIN, to achieve exactly &lt;/P&gt;&lt;P&gt;-- the same results as in the example above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT COUNTRIES.COUNTRY, REGION &lt;/P&gt;&lt;P&gt;FROM Countries &lt;/P&gt;&lt;P&gt;LEFT JOIN Cities&lt;/P&gt;&lt;P&gt;ON CITY_ID=CITY_ID;&lt;/P&gt;&lt;P&gt;-- Join the EMPLOYEE and DEPARTMENT tables, &lt;/P&gt;&lt;P&gt;-- select the employee number (EMPNO), &lt;/P&gt;&lt;P&gt;-- employee surname (LASTNAME), &lt;/P&gt;&lt;P&gt;-- department number (WORKDEPT in the EMPLOYEE table&lt;/P&gt;&lt;P&gt;-- and DEPTNO in the DEPARTMENT table) &lt;/P&gt;&lt;P&gt;-- and department name (DEPTNAME) &lt;/P&gt;&lt;P&gt;-- of all employees who were born (BIRTHDATE) earlier than 1930&lt;/P&gt;&lt;P&gt;SELECT EMPNO, LASTNAME, WORKDEPT, DEPTNAME &lt;/P&gt;&lt;P&gt;   FROM SAMP.EMPLOYEE LEFT OUTER JOIN SAMP.DEPARTMENT &lt;/P&gt;&lt;P&gt;   ON WORKDEPT = DEPTNO &lt;/P&gt;&lt;P&gt;   AND YEAR(BIRTHDATE) &amp;lt; 1930;&lt;/P&gt;&lt;P&gt;-- List every department with the employee number and &lt;/P&gt;&lt;P&gt;-- last name of the manager,&lt;/P&gt;&lt;P&gt;-- including departments without a manager&lt;/P&gt;&lt;P&gt;SELECT DEPTNO, DEPTNAME, EMPNO, LASTNAME&lt;/P&gt;&lt;P&gt;      FROM DEPARTMENT LEFT OUTER JOIN EMPLOYEE&lt;/P&gt;&lt;P&gt;	    ON MGRNO = EMPNO;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join/m-p/1993929#M405165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with left outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join/m-p/1993930#M405166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A LEFT OUTER JOIN is one of the JOIN operations that allow you to specify a join clause. It preserves the unmatched rows from the first (left) table, joining them with a NULL row in the shape of the second (right) table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join/m-p/1993930#M405166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:54:36Z</dc:date>
    </item>
  </channel>
</rss>

