Review of
Relational Algebra
Operators in
Relational Algebra
- Operations
in Relational
Algebra can be divided into
3 categories:
- Set operators:
- ∪ =
set union
- ∩ = set
intersection
- − =
set difference
- × =
cartesian product
|
- Relational database specific operators:
- σ =
the selection operator
- π =
the projection operator
- ⋈ =
the join operator
|
- Aggregate functions:
- sum:
find the sum of a
set of values
- avg:
find the average of a
set of values
- count:
find the cardinality of a
set of values
- any:
find the existance of a
set of values
- max:
find the maximum of a
set of values
- min:
find the minumum of a
set of values
|
|
|
Properties of
Relational Algebra
operators
❮
❯