Outer Joins
{oj outer-join}
where outer-join is:
table-reference {LEFT | RIGHT | FULL} OUTER JOIN
table-reference specifies a table name, and search-condition specifies the join condition between the table-references.
An outer join request must appear after the FROM keyword and before the WHERE clause (if one exists). For complete syntax information, see “Outer Join Escape Sequence” in Appendix C, “SQL Grammar.”
For example, the following SQL statements create the same result set that
lists all customers and shows which has open orders. The first statement uses the
escape-sequence syntax. The second statement uses the native syntax for Oracle
and is not interoperable.
FROM {oj Customers LEFT OUTER JOIN Orders ON Customers.CustID=Orders.CustID}
WHERE Orders.Status='OPEN'
SELECT Customers.CustID, Customers.Name, Orders.OrderID, Orders.Status
FROM Customers , Orders
WHERE (Orders.Status='OPEN') AND (Customers.CustID= Orders.CustID(+))
{table-reference | outer-join} ON search-condition