中文网站
  Advanced Search
Read the latest Blogs from IT professionals in the field. Read and write community created documents. Need IT help? Ask our staff. Connect with your peers. Check our Tech Shop for posters, books and software tools. Home

4.9.2 Database Systems: Join types and conditions

1. Each variant of the join operations in SQL-92 consists of a join type and a join condition.

2. Join types: inner join, left outer join, right outer join, full outer join.

The keyword inner and outer are optional since the rest of the join type enables us to deduce whether the
join is an inner join or an outer join.
SQL-92 also provides two other join types:

(a) cross join: an inner join without a join condition.
(b) union join: a full outer join on the \false" condition, i.e., where the inner join is empty.

3. Join conditions: natural, on predicate, using (A1;A2; : : :;An).

The use of join condition is mandatory for outer joins, but is optional for inner joins (if it is omitted, a
Cartesian product results).

4. Ex. A natural full outer join:

loan natural full outer join borrower
using (loan#)

Database System Structure: