Relational Calculus
Relational Calculus
RELATIONAL CALCULUS
• It is a non-procedural query language. A calculus expression
specifies “What to retrieve” rather than “how to retrieve”.
• a query is solved by defining a solution relation in a single
step.
• it is mainly based on the well-known propositional calculus,
which is a method of calculating with sentences or
declatations.
QUANTIFIERS
UNIVERSAL EXISTENTIAL
QUANTIFIERS QUANTIFIERS
The universal quantifier The existential quantifier denoted
denoted by ∀ is read as for by ∃ is read as for all which means
all which means that in a that in a given set of tuples there is
given set of tuples exactly at least one occurrences whose
all tuples satisfy a given value satisfy a given condition.
condition.
RELATIONAL ALAGEBRA VS RELATIONAL
CALCULUS