Binary Relational Operations
Binary Relational Operations
Operations
Explore the key concepts of binary relational operations, including the JOIN
operation, Cartesian product, and various types of joins.
The JOIN Operation
Join Condition
Definition
The join condition is specified on attributes from the
The result of the JOIN is a relation with attributes two relations and evaluated for each combination of
from both input relations. tuples.
1 2 3
Returns rows from both tables that Keeps all tuples from one or both Performs an inner join on
satisfy the join condition. tables, even if there is no match. common attributes and eliminates
duplicates.
Theta Join
General Join Condition Equality Join Natural Join
A common case is the equality Natural join does not use any
The join condition can use any (=) join, also called an equi- comparison operators, just
comparison operator (=, <, >, join. matches common attributes.
etc.).
Left Outer Join
Difference from Join Join only includes tuples that satisfy the join
condition.