Search code examples
databaserelational-databasefunctional-dependencieserd

Determining the Normal Form without Functional Dependencies


If I am given the ER Diagram with the describing text, then I can simply write the corresponding relations. But how could the corresponding Normal Form be specified?


Solution

  • The steps to figure out the normal form of a relation are:

    1. Compute the minimal cover of the FDs (if needed)
    2. Find out the candidate keys
    3. Find out the form of the relation (wikipedia link)

    You need 1. to work out 2., and 2. to work out 3. If you are given only the ER diagram, you have to figure out the functional dependencies yourself trying to understand the relationships between the different attributes.

    Also, note that there isn't an algorithmic way to compute which the FDs are since it very much depends on your domain, so you rely on your common sense.