7.12

Let R1,R2,...,Rn be a decomposition of schema U. Let u(U) be a relation, and let ri=ΠRi(u). Show that ur1r2...rn


Consider some tuple t in u.

Note that ri=ΠRi(u) implies that t[Ri]ri,1in. Thus,

t[R1]t[R2]...t[Rn]r1r2...rn

By the definition of natural join,

t[R1]t[R2]...t[Rn]=Πα(σβ(t[R1]×t[R2]×...×t[Rn]))

where the condition β is satisfied if values of attributes with the same name in a tuple are equal and where α=U. The Cartesian product of single tuples generates one tuple. The selection process is satisfied because all attributes with the same name must have the same value since they are projections from the same tuple. Finally, the projection clause removes duplicate attribute names.

By the definition of decomposition, U=R1R2...Rn, which means that all attributes of t are in t[R1]t[R2]...t[Rn]. That is, t is equal to the result of this join.

Since t is any arbitrary tuple in u,

ur1r2...rn