Rename (relational algebra)

From testwiki
Revision as of 10:30, 11 July 2023 by imported>Citation bot (Alter: url, pages. URLs might have been anonymized. Removed parameters. Formatted dashes. | Use this bot. Report bugs. | #UCB_CommandLine)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In relational algebra, a rename is a unary operation written as ρa/b(R) where:

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:

Employee ρEmployeeName/Name(Employee)
Name EmployeeId
Harry 3415
Sally 2241
EmployeeName EmployeeId
Harry 3415
Sally 2241

Formally, the semantics of the rename operator is defined as follows:

ρa/b(R)={ t[a/b]:tR },

where t[a/b] is defined as the tuple Template:Mvar, with the Template:Mvar attribute renamed to Template:Mvar, so that:

t[a/b]={ (c,v) | (c,v)t, cb }{ (a, t(b)) }.

References

Template:Reflist