Joins Flashcards
(10 cards)
Returns all values from one table even if match not found
Outer Join
All requested results, values of common columns returned only once. Duplicate
column eliminated. If there are no common column names, NATURAL JOIN results
into a CARTESIAN PRODUCT (CROSS JOIN)
Natural Join
Uses only field values in tables that are equal. Returns all requested results including values of common columns.
Equi Join
Requires each record in two tables to have matching records.
Inner Join
Weird wording. It selects matching values in 2 tables.
Joins rows based on matched values and returns rows from both tables.
Full Outer Join
Joins rows based on matched values. The result includes unmatched rows from the
table on the left of the JOIN clause.
Left Outer Join
Joins rows based on matched values. The result includes unmatched rows from the
table on the right of the JOIN clause.
Right Outer Join
Joins the table to itself
Self Join
Cartesian product of tables. Combines each row from the first table with each row from
the second table
Cross Join
Returns a table that includes all data from each table. Both tables (or views) must
have the same number of columns and the data types of both columns must be same.
Strictly, not a join.
Union