What is TRC and DRC in DBMS?

Himanshu picture Himanshu · Sep 4, 2015 · Viewed 10.9k times · Source

What is tuple relational calculus (TRC) and domain relational calculus (DRC)? How do they differ with relational algebra?

I am new in DBMS field. But I have learned basics of relational algebra.

Answer

reaanb picture reaanb · Sep 4, 2015
  • In relational algebra, variables contain relations and operators derive relations by transforming or combining relations.
  • Relational calculii use set builder notation and logical connectives to define a new relation by describing the tuples and attributes that make it up.
  • In tuple relational calculus, variables denote tuples and attributes are referred by name.
  • In domain relational calculus, variables denote attributes and tuples are constructed via a positional notation.