Basic Concepts



next up previous
Next: Closure of a Up: Functional Dependencies Previous: Functional Dependencies

Basic Concepts

  1. Functional dependencies.
  2. Functional dependencies allow us to express constraints that cannot be expressed with superkeys.

  3. In the scheme

    if a loan may be made jointly to several people (e.g. husband and wife) then we would not expect loan# to be a superkey.

    We do however expect the functional dependency

    to hold, as a loan number can only be associated with one amount.

  4. A set of functional dependencies can be used in two ways:
  5. Figure 5.2 shows a relation that we can examine.

     
    Figure 5.2:   Sample relation .

  6. We can see that is satisfied (in this particular relation), but is not. is also satisfied.

  7. Functional dependencies are called trivial if they are satisfied by all relations.

  8. In general, a functional dependency is trivial if .

  9. In the customer relation of figure 5.4, we see that is satisfied by this relation. However, as in the real world two cities can have streets with the same names (e.g. Main, Broadway, etc.), we would not include this functional dependency in our list meant to hold on Customer-scheme.

  10. The list of functional dependencies for the example database is:



next up previous
Next: Closure of a Up: Functional Dependencies Previous: Functional Dependencies



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