We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Relational Algebra And Calculus
Stephen M. Reaves
::
2023-06-16
Notes about Lesson 6 of CS-6400
Summary
Closed Algebra
Closed Algebra := A set of operations where the input operands and output
operands are of the same type.
Operators
https://cs.brown.edu/courses/csci1270/website_2020/static/files/cs127_cheatsheet.pdf
is a union.
is an intersection.
is the set difference.
is the Cartesian Product.
is the projection (eliminating columns).
is the selection (eliminating rows).
or is the natural join.
is divide by (universal quantification).
is the rename operator.
Selection Example
select all records from set
that match .
Relational Calculus
:= Set of tuples t that satisfy predicate
Predicates are built from atoms
Range Expression: denote that t is a tuple of relation R.
Attribute Value: .
Constants are defined by c
Comparison operators:
Atoms :=