Comparison of Relational Algebra and Relational Calculus

Classified in Design and Engineering

Written at on English with a size of 1.36 KB.

Relational Algebra and Relational Calculus

Relational Algebra and Relational Calculus are the formal query languages for a relational model. Both form the base for the SQL language which is used in most of the relational DBMSs. Relational Algebra is a procedural language. On the other hand, Relational Calculus is a declarative language. Relational Algebra and Relational Calculus can be further differentiated on many aspects, which I have discussed below with the help of a comparison chart.

BASIS FOR COMPARISONRELATIONAL ALGEBRARELATIONAL CALCULUS
BasicRelational Algebra is a Procedural language.Relational Calculus is a Declarative language.
StatesRelational Algebra states how to obtain the result.Relational Calculus states what result we have to obtain.
OrderRelational Algebra describes the order in which operations have to be performed.Relational Calculus does not specify the order of operations.
DomainRelational Algebra is not domain dependent.Relational Calculus can be domain dependent.
RelatedIt is close to a programming language.It is close to the natural language.

Entradas relacionadas: