A multiple-table join connects more than
two tables on one or more associated columns; it can be an equi-join
or a natural join.
The following query creates an equi-join
on the catalog, stock, and manufact tables.
The query retrieves the following rows.
The manu_code is repeated three times, once for
each table, and stock_num is repeated twice.
To avoid the considerable duplication of a multiple-table
query such as Query, include
specific columns in the projection list to define the SELECT statement
more closely, as the following query shows.
The query uses a wildcard to select all
columns from the table with the most columns and then specifies columns
from the other two tables. The result shows the natural join that
the query produces. It displays the same information as the previous
example, but without duplication.