Extended Operators in Relational Algebra in C++

C++Server Side ProgrammingProgramming

Relational data model is the primary data model, which is used widely around the world for data storage and processing. This model is simple and it has all the properties and capabilities required to process data with storage efficiency.

They are basic operators on Relation Algebra, here we will learn about some extended operators. They are mainly of three types:

  1. Intersection 
  2. Join 
  3. Divide 

 

Intersection Operation i s a special type of operation in for relations R1 and R2 where the relation in which the tuples with elements present in both relations i.e. in relation R1 and R2. 

JOIN 

Conditional Join is a special type of join in which we join more than two relations and the join is governed by some conditions.

Natural Join is a special type of join in which the equality condition is true for all attributes of the relation.

Left Outer Join is a special type of join in which the join considers all elements of left relation and the tuple from right relation that satisfy the given condition.

Right Outer Join is a special type of join in which the join considers all elements of right relation and the tuple from left relation that satisfy the given condition.

Full Outer Join is  the join that considers all elements from both right and left relations.

Divide operation is applicable only if B proper subset of A. It returns a relation whose attribute is all attributes of A - attributes of B.

raja
Published on 22-Jan-2021 13:25:58
Advertisements