The Relational Algebra and Calculus
The Relational Algebra and Calculus
Navathe Slide 6- 1
Relational Algebra Overview
operations
■ Necessary in some cases (see JOIN operation
later)
■ UNION Example
■ INTERSECTION is denoted by ∩
■ The result of the operation R ∩ S, is a
relation that includes all tuples that are in
both R and S
■ The attribute names in the result will be the
same as the attribute names in R
■ The two operand relations R and S must be
“type compatible”
{uv | (∃ q) (∃ r) (∃ s) (∃ t) (∃ w) (∃ x) (∃ y) (∃ z)
(EMPLOYEE(qrstuvwxyz) and q=‘John’ and r=‘B’ and
s=‘Smith’)}