Representation of Information



next up previous
Next: Loss of Information Up: Pitfalls in Relational Previous: Pitfalls in Relational

Representation of Information

  1. If we were to replace Branch-scheme and Borrow-scheme with the single scheme:

    we would get the relation of Figure 6.3 produced by a natural join of branch and borrow.

  2. A tuple in the new relation has the following attributes:
  3. If we wish to add a loan to our database, the original design would require adding a tuple to borrow:

  4. In our new design, we need a tuple with all the attributes required for Lending-scheme. Thus we need to insert

  5. We are now repeating the assets and branch city information for every loan.
  6. Under the new design, we need to change many tuples if the branch's assets change.

  7. Let's analyze this problem:
  8. Another problem is that we cannot represent the information for a branch (assets and city) unless we have a tuple for a loan at that branch.

  9. Unless we use nulls, we can only have this information when there are loans, and must delete it when the last loan is paid off.



Page created and maintained by Osmar R. Zaï ane
Last Update: Mon Oct 16 17:18:28 PDT 1995