Rename (relational algebra)
In relational algebra, a rename is a unary operation written as
where:
The result is identical to
except that the
attribute in all tuples is renamed to
. For an example, consider the following invocation of
on an
relation and the result of that invocation:
![]() |
![]() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Formally the semantics of the rename operator is defined as follows:
where
is defined as the tuple
with the
attribute renamed to
so that:
This article is issued from Wikipedia - version of the Monday, January 06, 2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.

![\rho_{a/b}(R) = \{ \ t[a/b] : t \in R \ \}](../I/m/db82aa3dcacfb468b1da2e3284254293.png)
![t[a/b] = \{ \ (c, v) \ | \ ( c, v ) \in t, \ c \ne b \ \} \cup \{ \ (a, \ t(b) ) \ \}](../I/m/5205ffae5f78b98f4db9d944ff5db3e6.png)