join
Problem
Extend tuples from one relation with matching tuples from another relation, by comparing their attributes according to a given criterion.
Example: I want all customers along with their addresses.
Description
The join of two relations is produced by selecting tuples from left and right relations by one or more matching attributes, and for every match, combine the tuples
The result’s heading contains all attributes from left plus all attributes from right.
The first variant specifies the names of attributes used for matching. This is used when the attributes to match on have the same names in both tuples.
The second variant first renames some attributes in right, then uses the renamed attributes for matching.
Requirements
Examples
Without renaming
Consult the Overview page for the data model used in this example.