Show that the following decomposition of the schema of Exercise 7.1 is not a lossless decomposition:
Hint: Give an example of a relation such that
Take the following instance of :-
| A | B | C | D | E |
|---|---|---|---|---|
| 1 | 6 | 5 | 7 | 3 |
| 2 | 8 | 5 | 9 | 4 |
Then is:-
| A | B | C |
|---|---|---|
| 1 | 6 | 5 |
| 2 | 8 | 5 |
is:-
| C | D | E |
|---|---|---|
| 5 | 7 | 3 |
| 5 | 9 | 4 |
And their natural join is:-
| A | B | C | D | E |
|---|---|---|---|---|
| 1 | 6 | 5 | 7 | 3 |
| 1 | 6 | 5 | 9 | 4 |
| 2 | 8 | 5 | 7 | 3 |
| 2 | 8 | 5 | 9 | 4 |
Thus, the decomposition is a lossy decomposition.