relational-algebra

Definition

Rename (Relational Algebra)

The rename operation, denoted by , modifies the schema of a relation without altering the data within its tuples. It produces a new relation with either a new name for the relation itself or new names for its attributes. It is used in two primary forms:

  1. Renaming a Relation
    The expression renames the relation to . The new relation has the identical schema and contains the exact same set of tuples as .

  2. Renaming Attributes
    The expression produces a new relation where the attribute from is renamed to . This can be extended to rename multiple attributes at once, e.g., .

The values and the number of tuples remain unchanged, only the attribute names in the schema are modified.