Joining Tables
Thursday, March 29th, 2007Joining tables brings together data from two or more tables in one query in order to get all the information you need. There are six different types of joins:
|
Element |
Description |
|
Cartesian Join |
This join replicates each row from the first table with every row from the second table. This will display every possible combination and can be implemented by two methods:
|
|
Equality Join |
Through a commonly named and defined column a join can be crated. This also has two methods:
|
|
Non-Equality Join |
Joins tables when there are no equivalent rows.
|
|
Self-Join |
Joins a table to itself.
|
|
Outer Join |
Include records of a table in output when there is no matching record in the other table.
|
|
Set Operators |
Combines results of multiple SELECT statements. Includes the keywords UNION, UNION ALL, INTERSECT, and MINUS. |