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:

Name EmployeeId
Harry 3415
Sally 2241
EmployeeName EmployeeId
Harry 3415
Sally 2241

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 1/6/2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.