Welcome to dextri.com on July 6 2009.
This is an internet experiment running to monitor browsing habbits of individuals through wikipedia contents.

Rename (relational algebra)

From Wikipedia, the free encyclopedia

Jump to: navigation, search

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

The result is identical to R except that the b field in all tuples is renamed to an a field. For an example, consider the following Employee relation and its renamed version:

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:

\rho_{a/b}(R) = \{ \ t[a/b] : t \in R \ \}

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

t[a/b] = \{ \ (c, v) \ | \ ( c, v ) \in t, \ c \ne b \ \} \cup \{ \ (a, \ t(b) ) \ \}

The result of the rename is only defined when the attribute a did not appear already in the header of the operand.

Personal tools
Languages

Visit joltnews for the latest headlines
Visit bloit.com for company information
Geed Media does computer consulting on long island.
This page viewed times. See Logs