Unit 2: Relational Algebra and Relational Calculus
Relational algebra: Relational Algebra is a procedural language that is performed on one or more existing relation to derive result relations without changing the original relation and can be used to tell the DBMS how to build a new relation from one or more relations in the database. So, it defines a complete scheme for each of the result relations. While using the relational algebra, user has to specify what is required and what are the procedures or steps to obtain the required output The relational algebra is a theoretical language with operations that work on one or more relations to define another relation without changing the original relation(s). Thus, both the operands and the results are relations, and so the output from one operation can become the input to another operation. This allows expressions to be nested in the relational algebra, just as we can nest arithmetic operations. This property is called closure: relations are closed under the alg...