Join
Join
JOIN
Join
Join is a combination of a Cartesian product
followed by a selection process. A Join operation
pairs two tuples from different relations, if and
only if a given join condition is satisfied.
Types of Join
• There are mainly two types of joins in DBMS:
• Inner Joins: Theta, Natural, EQUI
• Outer Join: Left, Right, Full
• Inner Join
• Inner Join is used to return rows from both
tables which satisfy the given condition. It is the
most widely used join operation and can be
considered as a default join-type
• An Inner join or equijoin is a comparator-based
join which uses equality comparisons in the join-
predicate. However, if you use other comparison
operators like “>” it can’t be called equijoin.
Theta (θ) Join
11 Sports
Student_Detail − Student_detail
Courses ⋈ HoD
Left Right
A B A B
Courses HoD
A B C D
Courses HoD
A B C D
Courses HoD
A B C D