Relational Algebra
Relational Algebra
By Saidzai
5/19/2005
Relational Algebra
The Relational Algebra is a procedural query
language . A query in Relational Algebra (RA)
has to specify no only what information is
required but also how to extract this
information
Relational algebra
• Relational algebra is a set of operators to
manipulate relations. Each operator of the
relational algebra takes either one or two
relations as its input and produces a new
relation as its output.
Union
• The union of two union-compatible relations
R1 and R2, R1 UNION R2, is the set of all
tuples t belonging to either R1 or R2 or both
• The formal notation for a union operation is U.
• Two relations are union-compatible if they
have the same degree, and the ith attribute
of each is based on the same domain.
Intersection