Outer join for a simple join to a third table
Using the HCL®
OneDB® syntax,
the following query shows an outer join that is the result of a simple
join to a third table. This second type of outer join is known as
a nested simple join.
The query first performs a simple join on
the orders and items tables, retrieving information
on all orders for items with a manu_code of KAR or SHM. It
then performs an outer join to combine this information with data
from the dominant customer table. An optional ORDER BY clause
reorganizes the data into the following form.