Jump to content

Rename (relational algebra)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Ndcroos (talk | contribs) at 14:27, 26 September 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In relational algebra, a rename is a unary operation written as where:

The result is identical to R except that the b attribute in all tuples is renamed to a. For an example, consider the following invocation of ρ on an Employee 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 t, with the b attribute renamed to a, so that: