<?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: Different  between join type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536091#M850790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joins are used to fetch data fast from Database tables:&lt;/P&gt;&lt;P&gt;Tables are joined with the proper key fields to fetch the data properly.&lt;/P&gt;&lt;P&gt;If there are no proper key fields between tables don't use Joins;&lt;/P&gt;&lt;P&gt;Important thing is that don't USE JOINS FOR CLUSTER tableslike BSEG and KONV.&lt;/P&gt;&lt;P&gt;Only use for Transparenmt tables.&lt;/P&gt;&lt;P&gt;You can also use joins for the database VIews to fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
JOINS

... FROM tabref1 INNER JOIN tabref2 ON cond 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The data is to be selected from transparent database tables and/or views determined by tabref1 and tabref2. tabref1 and tabref2 each have the same form as in variant 1 or are themselves Join expressions. The keyword INNER does not have to be specified. The database tables or views determined by tabref1 and tabref2 must be recognized by the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a relational data structure, it is quite normal for data that belongs together to be split up across several tables to help the process of standardization (see relational databases). To regroup this information into a database query, you can link tables using the join command. This formulates conditions for the columns in the tables involved. The inner join contains all combinations of lines from the database table determined by tabref1 with lines from the table determined by tabref2, whose values together meet the logical condition (join condition) specified using ON&amp;gt;cond. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join between table 1 and table 2, where column D in both tables in the join condition is set the same: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 Table 2 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D    D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1    1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1    3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;a3  b3  c3  2    4  e3  f3  g3  h3  &lt;/P&gt;&lt;P&gt;a4  b4  c4  3    -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&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;\ / &lt;/P&gt;&lt;P&gt;\/ &lt;/P&gt;&lt;P&gt;Inner Join &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D  D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a4  b4  c4  3  3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&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;Example &lt;/P&gt;&lt;P&gt;Output a list of all flights from Frankfurt to New York between September 10th and 20th, 2001 that are not sold out: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: DATE LIKE SFLIGHT-FLDATE, 
CARRID LIKE SFLIGHT-CARRID, 
CONNID LIKE SFLIGHT-CONNID. 

SELECT F~CARRID F~CONNID F~FLDATE 
INTO (CARRID, CONNID, DATE) 
FROM SFLIGHT AS F INNER JOIN SPFLI AS P 
ON F~CARRID = P~CARRID AND 
F~CONNID = P~CONNID 
WHERE P~CITYFROM = 'FRANKFURT' 
AND P~CITYTO = 'NEW YORK' 
AND F~FLDATE BETWEEN '20010910' AND '20010920' 
AND F~SEATSOCC &amp;lt; F~SEATSMAX. 
WRITE: / DATE, CARRID, CONNID. 
ENDSELECT. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are columns with the same name in both tables, you must distinguish between them by prefixing the field descriptor with the table name or a table alias. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;In order to determine the result of a SELECT command where the FROM clause contains a join, the database system first creates a temporary table containing the lines that meet the ON condition. The WHERE condition is then applied to the temporary table. It does not matter in an inner join whether the condition is in the ON or WHEREclause. The following example returns the same solution as the previous one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Output of a list of all flights from Frankfurt to New York between September 10th and 20th, 2001 that are not sold out: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: DATE LIKE SFLIGHT-FLDATE, 
CARRID LIKE SFLIGHT-CARRID, 
CONNID LIKE SFLIGHT-CONNID. 

SELECT F~CARRID F~CONNID F~FLDATE 
INTO (CARRID, CONNID, DATE) 
FROM SFLIGHT AS F INNER JOIN SPFLI AS P 
ON F~CARRID = P~CARRID 
WHERE F~CONNID = P~CONNID 
AND P~CITYFROM = 'FRANKFURT' 
AND P~CITYTO = 'NEW YORK' 
AND F~FLDATE BETWEEN '20010910' AND '20010920' 
AND F~SEATSOCC &amp;lt; F~SEATSMAX. 
WRITE: / DATE, CARRID, CONNID. 
ENDSELECT. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Since not all of the database systems supported by SAP use the standard syntax for ON conditions, the syntax has been restricted. It only allows those joins that produce the same results on all of the supported database systems: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a table or view may appear to the right of the JOIN operator, not another join expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only AND is possible in the ON condition as a logical operator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each comparison in the ON condition must contain a field from the right-hand table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an outer join occurs in the FROM clause, all the ON conditions must contain at least one "real" JOIN condition (a condition that contains a field from tabref1 amd a field from tabref2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;In some cases, '*' may be specified in the SELECT clause, and an internal table or work area is entered into the INTO clause (instead of a list of fields). If so, the fields are written to the target area from left to right in the order in which the tables appear in the FROM clause, according to the structure of each table work area. There can then be gaps between table work areas if you use an Alignment Request. For this reason, you should define the target work area with reference to the types of the database tables, not simply by counting the total number of fields. For an example, see below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;... FROM tabref1 LEFT OUTER JOIN tabref2 ON cond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Selects the data from the transparent database tables and/or views specified in tabref1 and tabref2. tabref1 und tabref2 both have either the same form as in variant 1 or are themselves join expressions. The keyword OUTER can be omitted. The database tables or views specified in tabref1 and tabref2 must be recognized by the ABAP-Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to determine the result of a SELECT command where the FROM clause contains a left outer join, the database system creates a temporary table containing the lines that meet the ON condition. The remaining fields from the left-hand table (tabref1) are then added to this table, and their corresponding fields from the right-hand table are filled with ZERO values. The system then applies the WHERE condition to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left outer join between table 1 and table 2 where column D in both tables set the join condition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 Table 2 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D    D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1    1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1    3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;a3  b3  c3  2    4  e3  f3  g3  h3  &lt;/P&gt;&lt;P&gt;a4  b4  c4  3    -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&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;\ / &lt;/P&gt;&lt;P&gt;\/ &lt;/P&gt;&lt;P&gt;Left Outer Join &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D  D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a3  b3  c3  2  NULL NULL NULL NULL NULL &lt;/P&gt;&lt;P&gt;a4  b4  c4  3  3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Output a list of all custimers with their bookings for October 15th, 2001: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: CUSTOMER TYPE SCUSTOM, 
BOOKING TYPE SBOOK. 

SELECT SCUSTOM~NAME SCUSTOM~POSTCODE SCUSTOM~CITY 
SBOOK~FLDATE SBOOK~CARRID SBOOK~CONNID SBOOK~BOOKID 
INTO (CUSTOMER-NAME, CUSTOMER-POSTCODE, CUSTOMER-CITY, 
BOOKING-FLDATE, BOOKING-CARRID, BOOKING-CONNID, 
BOOKING-BOOKID) 
FROM SCUSTOM LEFT OUTER JOIN SBOOK 
ON SCUSTOM~ID = SBOOK~CUSTOMID AND 
SBOOK~FLDATE = '20011015' 
ORDER BY SCUSTOM~NAME SBOOK~FLDATE. 
WRITE: / CUSTOMER-NAME, CUSTOMER-POSTCODE, CUSTOMER-CITY, 
BOOKING-FLDATE, BOOKING-CARRID, BOOKING-CONNID, 
BOOKING-BOOKID. 
ENDSELECT. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If there are columns with the same name in both tables, you must distinguish between them by prefixing the field descriptor with the table name or using an alias. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;For the resulting set of a SELECT command with a left outer join in the FROM clause, it is generally of crucial importance whether a logical condition is in the ON or WHERE condition. Since not all of the database systems supported by SAP themselves support the standard syntax and semantics of the left outer join, the syntax has been restricted to those cases that return the same solution in all database systems: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a table or view may come after the JOIN operator, not another join statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only logical operator allowed in the ON condition is AND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each comparison in the ON condition must contain a field from the right-hand table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparisons in the WHERE condition must not contain a field from the right-hand table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ON condition must contain at least one "real" JOIN condition (a condition in which a field from tabref1 as well as from tabref2 occurs). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;In some cases, '*' may be specivied as the field list in the SELECT clause, and an internal table or work area is entered in the INTO clause (instead of a list of fields). If so, the fields are written to the target area from left to right in the order in which the tables appear in the llen in der FROM clause, according to the structure of each table work area. There can be gaps between the table work areas if you use an Alignment Request. For this reason, you should define the target work area with reference to the types of the database tables, as in the following example (not simply by counting the total number of fields). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Example of a JOIN with more than two tables: Select all flights from Frankfurt to New York between September 10th and 20th, 2001 where there are available places, and display the name of the airline. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF WA, 
FLIGHT TYPE SFLIGHT, 
PFLI TYPE SPFLI, 
CARR TYPE SCARR, 
END OF WA. 

SELECT * INTO WA 
FROM ( SFLIGHT AS F INNER JOIN SPFLI AS P 
ON F~CARRID = P~CARRID AND 
F~CONNID = P~CONNID ) 
INNER JOIN SCARR AS C 
ON F~CARRID = C~CARRID 
WHERE P~CITYFROM = 'FRANKFURT' 
AND P~CITYTO = 'NEW YORK' 
AND F~FLDATE BETWEEN '20010910' AND '20010920' 
AND F~SEATSOCC &amp;lt; F~SEATSMAX. 
WRITE: / WA-CARR-CARRNAME, WA-FLIGHT-FLDATE, WA-FLIGHT-CARRID, 
WA-FLIGHT-CONNID. 
ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2955155"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4933923"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3676534"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your doubts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 10, 2008 7:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 13:22:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T13:22:42Z</dc:date>
    <item>
      <title>Different  between join type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536088#M850787</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;i wont to now what is the different between left outer join and inner join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 12:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536088#M850787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T12:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different  between join type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536089#M850788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;the inner join is nothing but join is performed if the condition is satisified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise the join is not performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in left outer join the reocrds are joind evven if the condition is not satisfied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;materno matna matdes mat no custmno custname&lt;/P&gt;&lt;P&gt;1 computer hardware 1 10000 pankesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 keyboard harware 2 200000 amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 joystick hardware &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lefft outer join is performed on condition materno = mat nio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then all three record in left will be join wheter the condition is satisfied or not. so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 computer hardware 10000 pankesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 keyboard harware 200000 amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 joystick hardware &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while in inner join only first two record will be jolined because materno 3 is not &lt;/P&gt;&lt;P&gt;present in the right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 computer hardware 10000 pankesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 keyboard harware 200000 amit&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;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 12:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536089#M850788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Different  between join type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536090#M850789</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;Syntax &lt;/P&gt;&lt;P&gt;... [(] {dbtab_left [AS tabalias_left]} | join &lt;/P&gt;&lt;P&gt;          {[INNER] JOIN}|{LEFT [OUTER] JOIN} &lt;/P&gt;&lt;P&gt;            {dbtab_right [AS tabalias_right] ON join_cond} [)] ...  . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The join syntax represents a recursively nestable join expression. A join expression consists of a left-hand and a right- hand side, which are joined either by means of [INNER] JOIN or LEFT [OUTER] JOIN. Depending on the type of join, a join expression can be either an inner (INNER) or an outer (LEFT OUTER) join. Every join expression can be enclosed in round brackets. If a join expression is used, the SELECT command circumvents SAP buffering. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the left-hand side, either a single database table, a view dbtab_left, or a join expression join can be specified. On the right-hand side, a single database table or a view dbtab_right as well as join conditions join_cond can be specified after ON. In this way, a maximum of 24 join expressions that join 25 database tables or views with each other can be specified after FROM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS can be used to specify an alternative table name tabalias for each of the specified database table names or for every view. A database table or a view can occur multiple times within a join expression and, in this case, have various alternative names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of the join conditions join_cond is the same as that of the sql_cond conditions after the addition WHERE, with the following differences: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least one comparison must be specified after ON. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Individual comparisons may be joined using AND only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All comparisons must contain a column in the database table or the view dbtab_right on the right-hand side as an operand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following additions not be used: NOT, LIKE, IN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No sub-queries may be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For outer joins, only equality comparisons (=, EQ) are possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an outer join occurs after FROM, the join condition of every join expression must contain at least one comparison between columns on the left-hand and the right-hand side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In outer joins, all comparisons that contain columns as operands in the database table or the view dbtab_right on the right-hand side must be specified in the corresponding join condition. In the WHERE condition of the same SELECT command, these columns are not allowed as operands. &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;Note &lt;/P&gt;&lt;P&gt;If the same column name occurs in several database tables in a join expression, they have to be identified in all remaining additions of the SELECT statement by using the column selector ~. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Join the columns carrname, connid, fldate of the database tables scarr, spfli and sflight by means of two inner joins. A list is created of the flights from p_cityfr to p_cityto. Alternative names are used for every table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_cityfr TYPE spfli-cityfrom, &lt;/P&gt;&lt;P&gt;            p_cityto TYPE spfli-cityto. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa, &lt;/P&gt;&lt;P&gt;         fldate TYPE sflight-fldate, &lt;/P&gt;&lt;P&gt;         carrname TYPE scarr-carrname, &lt;/P&gt;&lt;P&gt;         connid   TYPE spfli-connid, &lt;/P&gt;&lt;P&gt;       END OF wa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE SORTED TABLE OF wa &lt;/P&gt;&lt;P&gt;               WITH UNIQUE KEY fldate carrname connid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT c&lt;SUB&gt;carrname p&lt;/SUB&gt;connid f~fldate &lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE itab &lt;/P&gt;&lt;P&gt;       FROM ( ( scarr AS c &lt;/P&gt;&lt;P&gt;         INNER JOIN spfli AS p ON p&lt;SUB&gt;carrid   = c&lt;/SUB&gt;carrid &lt;/P&gt;&lt;P&gt;                              AND p~cityfrom = p_cityfr &lt;/P&gt;&lt;P&gt;                              AND p~cityto   = p_cityto ) &lt;/P&gt;&lt;P&gt;         INNER JOIN sflight AS f ON f&lt;SUB&gt;carrid = p&lt;/SUB&gt;carrid &lt;/P&gt;&lt;P&gt;                                AND f&lt;SUB&gt;connid = p&lt;/SUB&gt;connid ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa. &lt;/P&gt;&lt;P&gt;  WRITE: / wa-fldate, wa-carrname, wa-connid. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Join the columns carrid, carrname and connid of the database tables scarr and spfli using an outer join. The column connid is set to the null value for all flights that do not fly from p_cityfr. This null value is then converted to the appropriate initial value when it is transferred to the assigned data object. The LOOP returns all airlines that do not fly from p_cityfr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_cityfr TYPE spfli-cityfrom. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa, &lt;/P&gt;&lt;P&gt;        carrid   TYPE scarr-carrid, &lt;/P&gt;&lt;P&gt;        carrname TYPE scarr-carrname, &lt;/P&gt;&lt;P&gt;        connid   TYPE spfli-connid, &lt;/P&gt;&lt;P&gt;      END OF wa, &lt;/P&gt;&lt;P&gt;      itab LIKE SORTED TABLE OF wa &lt;/P&gt;&lt;P&gt;                WITH NON-UNIQUE KEY carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT s&lt;SUB&gt;carrid s&lt;/SUB&gt;carrname p~connid &lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE itab &lt;/P&gt;&lt;P&gt;       FROM scarr AS s &lt;/P&gt;&lt;P&gt;       LEFT OUTER JOIN spfli AS p ON s&lt;SUB&gt;carrid   =  p&lt;/SUB&gt;carrid &lt;/P&gt;&lt;P&gt;                                  AND p~cityfrom = p_cityfr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa. &lt;/P&gt;&lt;P&gt;  IF wa-connid = '0000'. &lt;/P&gt;&lt;P&gt;    WRITE: / wa-carrid, wa-carrname. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &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;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536090#M850789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Different  between join type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536091#M850790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joins are used to fetch data fast from Database tables:&lt;/P&gt;&lt;P&gt;Tables are joined with the proper key fields to fetch the data properly.&lt;/P&gt;&lt;P&gt;If there are no proper key fields between tables don't use Joins;&lt;/P&gt;&lt;P&gt;Important thing is that don't USE JOINS FOR CLUSTER tableslike BSEG and KONV.&lt;/P&gt;&lt;P&gt;Only use for Transparenmt tables.&lt;/P&gt;&lt;P&gt;You can also use joins for the database VIews to fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
JOINS

... FROM tabref1 INNER JOIN tabref2 ON cond 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The data is to be selected from transparent database tables and/or views determined by tabref1 and tabref2. tabref1 and tabref2 each have the same form as in variant 1 or are themselves Join expressions. The keyword INNER does not have to be specified. The database tables or views determined by tabref1 and tabref2 must be recognized by the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a relational data structure, it is quite normal for data that belongs together to be split up across several tables to help the process of standardization (see relational databases). To regroup this information into a database query, you can link tables using the join command. This formulates conditions for the columns in the tables involved. The inner join contains all combinations of lines from the database table determined by tabref1 with lines from the table determined by tabref2, whose values together meet the logical condition (join condition) specified using ON&amp;gt;cond. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join between table 1 and table 2, where column D in both tables in the join condition is set the same: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 Table 2 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D    D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1    1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1    3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;a3  b3  c3  2    4  e3  f3  g3  h3  &lt;/P&gt;&lt;P&gt;a4  b4  c4  3    -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&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;\ / &lt;/P&gt;&lt;P&gt;\/ &lt;/P&gt;&lt;P&gt;Inner Join &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D  D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a4  b4  c4  3  3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&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;Example &lt;/P&gt;&lt;P&gt;Output a list of all flights from Frankfurt to New York between September 10th and 20th, 2001 that are not sold out: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: DATE LIKE SFLIGHT-FLDATE, 
CARRID LIKE SFLIGHT-CARRID, 
CONNID LIKE SFLIGHT-CONNID. 

SELECT F~CARRID F~CONNID F~FLDATE 
INTO (CARRID, CONNID, DATE) 
FROM SFLIGHT AS F INNER JOIN SPFLI AS P 
ON F~CARRID = P~CARRID AND 
F~CONNID = P~CONNID 
WHERE P~CITYFROM = 'FRANKFURT' 
AND P~CITYTO = 'NEW YORK' 
AND F~FLDATE BETWEEN '20010910' AND '20010920' 
AND F~SEATSOCC &amp;lt; F~SEATSMAX. 
WRITE: / DATE, CARRID, CONNID. 
ENDSELECT. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are columns with the same name in both tables, you must distinguish between them by prefixing the field descriptor with the table name or a table alias. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;In order to determine the result of a SELECT command where the FROM clause contains a join, the database system first creates a temporary table containing the lines that meet the ON condition. The WHERE condition is then applied to the temporary table. It does not matter in an inner join whether the condition is in the ON or WHEREclause. The following example returns the same solution as the previous one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Output of a list of all flights from Frankfurt to New York between September 10th and 20th, 2001 that are not sold out: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: DATE LIKE SFLIGHT-FLDATE, 
CARRID LIKE SFLIGHT-CARRID, 
CONNID LIKE SFLIGHT-CONNID. 

SELECT F~CARRID F~CONNID F~FLDATE 
INTO (CARRID, CONNID, DATE) 
FROM SFLIGHT AS F INNER JOIN SPFLI AS P 
ON F~CARRID = P~CARRID 
WHERE F~CONNID = P~CONNID 
AND P~CITYFROM = 'FRANKFURT' 
AND P~CITYTO = 'NEW YORK' 
AND F~FLDATE BETWEEN '20010910' AND '20010920' 
AND F~SEATSOCC &amp;lt; F~SEATSMAX. 
WRITE: / DATE, CARRID, CONNID. 
ENDSELECT. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Since not all of the database systems supported by SAP use the standard syntax for ON conditions, the syntax has been restricted. It only allows those joins that produce the same results on all of the supported database systems: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a table or view may appear to the right of the JOIN operator, not another join expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only AND is possible in the ON condition as a logical operator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each comparison in the ON condition must contain a field from the right-hand table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an outer join occurs in the FROM clause, all the ON conditions must contain at least one "real" JOIN condition (a condition that contains a field from tabref1 amd a field from tabref2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;In some cases, '*' may be specified in the SELECT clause, and an internal table or work area is entered into the INTO clause (instead of a list of fields). If so, the fields are written to the target area from left to right in the order in which the tables appear in the FROM clause, according to the structure of each table work area. There can then be gaps between table work areas if you use an Alignment Request. For this reason, you should define the target work area with reference to the types of the database tables, not simply by counting the total number of fields. For an example, see below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;... FROM tabref1 LEFT OUTER JOIN tabref2 ON cond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Selects the data from the transparent database tables and/or views specified in tabref1 and tabref2. tabref1 und tabref2 both have either the same form as in variant 1 or are themselves join expressions. The keyword OUTER can be omitted. The database tables or views specified in tabref1 and tabref2 must be recognized by the ABAP-Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to determine the result of a SELECT command where the FROM clause contains a left outer join, the database system creates a temporary table containing the lines that meet the ON condition. The remaining fields from the left-hand table (tabref1) are then added to this table, and their corresponding fields from the right-hand table are filled with ZERO values. The system then applies the WHERE condition to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left outer join between table 1 and table 2 where column D in both tables set the join condition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 Table 2 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D    D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1    1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1    3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;a3  b3  c3  2    4  e3  f3  g3  h3  &lt;/P&gt;&lt;P&gt;a4  b4  c4  3    -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&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;\ / &lt;/P&gt;&lt;P&gt;\/ &lt;/P&gt;&lt;P&gt;Left Outer Join &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A  B  C  D  D  E  F  G  H  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;a1  b1  c1  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a2  b2  c2  1  1  e1  f1  g1  h1  &lt;/P&gt;&lt;P&gt;a3  b3  c3  2  NULL NULL NULL NULL NULL &lt;/P&gt;&lt;P&gt;a4  b4  c4  3  3  e2  f2  g2  h2  &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Output a list of all custimers with their bookings for October 15th, 2001: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: CUSTOMER TYPE SCUSTOM, 
BOOKING TYPE SBOOK. 

SELECT SCUSTOM~NAME SCUSTOM~POSTCODE SCUSTOM~CITY 
SBOOK~FLDATE SBOOK~CARRID SBOOK~CONNID SBOOK~BOOKID 
INTO (CUSTOMER-NAME, CUSTOMER-POSTCODE, CUSTOMER-CITY, 
BOOKING-FLDATE, BOOKING-CARRID, BOOKING-CONNID, 
BOOKING-BOOKID) 
FROM SCUSTOM LEFT OUTER JOIN SBOOK 
ON SCUSTOM~ID = SBOOK~CUSTOMID AND 
SBOOK~FLDATE = '20011015' 
ORDER BY SCUSTOM~NAME SBOOK~FLDATE. 
WRITE: / CUSTOMER-NAME, CUSTOMER-POSTCODE, CUSTOMER-CITY, 
BOOKING-FLDATE, BOOKING-CARRID, BOOKING-CONNID, 
BOOKING-BOOKID. 
ENDSELECT. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If there are columns with the same name in both tables, you must distinguish between them by prefixing the field descriptor with the table name or using an alias. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;For the resulting set of a SELECT command with a left outer join in the FROM clause, it is generally of crucial importance whether a logical condition is in the ON or WHERE condition. Since not all of the database systems supported by SAP themselves support the standard syntax and semantics of the left outer join, the syntax has been restricted to those cases that return the same solution in all database systems: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a table or view may come after the JOIN operator, not another join statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only logical operator allowed in the ON condition is AND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each comparison in the ON condition must contain a field from the right-hand table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparisons in the WHERE condition must not contain a field from the right-hand table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ON condition must contain at least one "real" JOIN condition (a condition in which a field from tabref1 as well as from tabref2 occurs). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;In some cases, '*' may be specivied as the field list in the SELECT clause, and an internal table or work area is entered in the INTO clause (instead of a list of fields). If so, the fields are written to the target area from left to right in the order in which the tables appear in the llen in der FROM clause, according to the structure of each table work area. There can be gaps between the table work areas if you use an Alignment Request. For this reason, you should define the target work area with reference to the types of the database tables, as in the following example (not simply by counting the total number of fields). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Example of a JOIN with more than two tables: Select all flights from Frankfurt to New York between September 10th and 20th, 2001 where there are available places, and display the name of the airline. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF WA, 
FLIGHT TYPE SFLIGHT, 
PFLI TYPE SPFLI, 
CARR TYPE SCARR, 
END OF WA. 

SELECT * INTO WA 
FROM ( SFLIGHT AS F INNER JOIN SPFLI AS P 
ON F~CARRID = P~CARRID AND 
F~CONNID = P~CONNID ) 
INNER JOIN SCARR AS C 
ON F~CARRID = C~CARRID 
WHERE P~CITYFROM = 'FRANKFURT' 
AND P~CITYTO = 'NEW YORK' 
AND F~FLDATE BETWEEN '20010910' AND '20010920' 
AND F~SEATSOCC &amp;lt; F~SEATSMAX. 
WRITE: / WA-CARR-CARRNAME, WA-FLIGHT-FLDATE, WA-FLIGHT-CARRID, 
WA-FLIGHT-CONNID. 
ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2955155"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4933923"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3676534"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your doubts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 10, 2008 7:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536091#M850790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Different  between join type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536092#M850791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;You use INNER JOIN to return all rows from both tables where there is a match. ie. in the resulting table all the rows and colums will have values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OUTER JOIN the relulting table may have empty colums. Outer join may be either LEFT or RIGHT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEFT OUTER JOIN returns all the rows from the first table, even if there are no matches in the second table.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RIGHT  OUTER JOIN returns all the rows from the second table, even if there are no matches in the first table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk this link for more.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.dotnetspider.com/qa/Question32234.aspx" target="test_blank"&gt;http://www.dotnetspider.com/qa/Question32234.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 03:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536092#M850791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T03:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Different  between join type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536093#M850792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai &lt;STRONG&gt;Ricardo&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view. With an outer join, records are also selected for which there is no entry in some of the tables used in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set of hits determined by an inner join can therefore be a subset of the hits determined with an outer join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database views implement an inner join. The database therefore only provides those records for which there is an entry in all the tables used in the view. Help views and maintenance views, however, implement an outer join.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 04:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-between-join-type/m-p/3536093#M850792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T04:43:45Z</dc:date>
    </item>
  </channel>
</rss>

