Book Contents

Book Index

Next Topic

Home

joined-table

Syntax

table-reference join-type table-reference

ON join-predicate

Semantics

 

table-reference

is a table-primary or another joined-table.

join-type

is one of the following:

INNER JOIN

LEFT [ OUTER ] JOIN

RIGHT [ OUTER ] JOIN

join-predicate

for an INNER JOIN, an equi-join based on a PRIMARY KEY-FOREIGN KEY constraint relationship between the joined tables.

for an OUTER JOIN: an equi-join based on a PRIMARY KEY-join key relationship between the joined tables that does not involve a FOREIGN KEY constraint.

Notes