Let R1 and R2 be sets of attributes and R = R1 R2. Let r be a relation on R. Prove that r? ? R1 (r)  ? R2 (r). Generalize this result to decompositions of R into n > 2 schemas.

What will be an ideal response?


If t ? r,then t1= ?R1(t ) and t2= ?R2(t ) match over the attributes in R1? R2, so this tuple will be in the natural join of ?R1(r) and ?R2(r).
For the general case, it is easy to see that

```
?R1(r) ...  ?Rn (r) =
{t | t is a tuple over R and ?R1(t ) ? ?R1(r), . . . , ?Rn(t ) ? ?Rn(r)}
```

Clearly, every tuple in r satis?es the above conditions and thus is in the above set.

Computer Science & Information Technology

You might also like to view...

Which of the following is not an algorithm?

a. A recipe. b. Operating instructions. c. Textbook index. d. Shampoo instructions (lather, rinse, repeat).

Computer Science & Information Technology

C++ allows you to redefine the way __________ work when used with class objects.

a. compiler errors b. preprocessor directives c. standard operators d. undefined variables e. None of these

Computer Science & Information Technology

By default, the tabs on a JTabbedPane appear at the:

a. top. b. bottom. c. left. d. right.

Computer Science & Information Technology

In a tree, the children of the same parent are called ______.

a) leafs b) siblings c) roots d) contemporaries

Computer Science & Information Technology