The JOIN operation is applied on two relations. When we want to choose related tuples from two given relation join is used. The join operation need that both the joined relations must have at least single domain compatible attributes.
Syntax:
R1 R2 is used to join related tuples from two relations R1 and R2 into a single tuple.
is of the form:
ANDAND..............AND.
Degree (R1 R2) <= Degree (R1) + Degree (R2).
- There are three types of joins:
a) Theta join
When every condition is of the form A θ B, A is an attribute of R1 and B is an attribute of R2 and have the similar domain, and θ is one of the comparison operators { ≤, ≥, ≠, =, <, <}.