Relational Algebra: CSCD343-Introduction To Databases - A. Vaisman 1
Relational Algebra: CSCD343-Introduction To Databases - A. Vaisman 1
Relational Algebra: CSCD343-Introduction To Databases - A. Vaisman 1
Cross-product ( ) Allows us to combine two relations.
Set-difference ( ) Tuples in reln. 1, but not in reln. 2.
Union ( ) Tuples in reln. 1 and in reln. 2.
Additional operations:
Intersection, join, division, renaming: Not essential, but (very!) useful.
Since each operation returns a relation, operations can be
composed! (Algebra is “closed”.)
sid ,..,age,bid,..(S1
sid
R1)
Result schema similar to cross-product, but only
one copy of fields for which equality is specified.
Natural Join: Equijoin on all common fields.