Relational Algebra - UNION (∪) Operation

1. Definition

The UNION operation in relational algebra combines tuples from two relations and returns a new relation containing all unique tuples that appear in either or both of the original relations. Duplicate tuples are eliminated in the result.


2. Union Compatibility

For two relations to be union compatible, the following conditions must be satisfied:

  1. Same Degree (Arity):
  2. Matching Attribute Domains:

Mathematically:


3. Result of UNION

The result of a union operation, say R = P ∪ Q, will:

  1. Contain all tuples that are in P, Q, or both.
  2. Eliminate duplicate tuples.
  3. Have the same degree as P and Q (since the relations are union-compatible).