Inner Joins
If we wish to join the two tables to find out what fruit belongs with
which preparation we could produce the output shown
Note that this only matches preparations that have fruit. In the
database the resultant "joined" table is actually a "Ghost" or virtual
table. Microsoft Access refers to this as a dynaset, or more traditionally as a subschema.
- Using the SQL Language this translates to;
- SELECT * From Fruit, Preparation
WHERE Fruit_id = Preparation_id;
- This join is known as an "Inner join" or in SQL terms may be
written as;
- SELECT * From Fruit INNER JOIN Preparation
ON Fruit_id = Preparation_id;
|