Relational Calculus Flashcards
(11 cards)
Formal query language for relational model based on the branch of the mathematical logic called predicate calculus
Relational Calculus
Specify what is to be retrieved rather than how to retrieve it
Relational Calculus
Two variations of relational Calculus
tuple
domain
Importance of Relational Calculus
- Firm basis in mathematical Logic
- SQL has its basic foundation in tuple relational calculus
{t|COND(t)} the first t represents?
tuple variable representing the requested attributes
{t|COND(t)} the COND(t) represents?
conditional expression involving t that evaluates to TRUE or FALSE
formula is made up of predicate calculus atoms which can be
An atom of the form:
R(ti)
ti. A op tj. B
ti. A op c or c op tj.B
COND is called _________ or ________
condition or formula or well informed formula
A formula is made up of one or more atoms connected via ___________
Logical operators ie. and or and not
Two special symbols called _______ can appear in formulas
quantifiers
Existential quantifier ∃
- A formula ∃t (F) is TRUE if there exists some tuple t that makes F TRUE.
Universal quantifier ∀
- A formula ∀t (F) is TRUE if for all possible tuple t, F is TRUE.
Query Graph
Graphical representation of a relational calculus query