Left outer joins
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
In a left outer join, the information from the table
on the left is preserved: the result table contains all rows from
the left table even if some rows do not have matching rows in the
right table. Where there are no matching rows in the right table,
SQL generates NULL values.
The following example depicts a join statement using the outer
join operator in the WHERE clause:
|
The query requests information about all the customers and their
orders. Even if there is not a corresponding row in the Order table
for each row in the Customer table, NULL values
are displayed for the Order.Ordernum and Order.Orderdate columns.
This query produces the following results:
|
The following example uses the LEFT OUTER JOIN phrase
in the FROM clause.
|
This query produces the following results:
|