Rename (relational algebra)
In relational algebra, a rename is a unary operation written as where:
- Template:Mvar is a relation
- Template:Mvar and Template:Mvar are attribute names
- Template:Mvar is an attribute of Template:Mvar
The result is identical to Template:Mvar except that the Template:Mvar attribute in all tuples is renamed to Template:Mvar.[1] For an example, consider the following invocation of Template:Mvar on an Template:Math relation and the result of that invocation:
|
|
Formally, the semantics of the rename operator is defined as follows:
where is defined as the tuple Template:Mvar, with the Template:Mvar attribute renamed to Template:Mvar, so that: