Functional Dependency

Given a relation R, a set of attributes functionally determines another set of attributes X → Y

Based on functional dependencies, we can normalize to eliminate data redundancy and prevent insertion, update, and deletion anomalies

We want to find all functional dependencies to normalize a database

  • Splitting/combining rule

  • Trivial functional dependencies rule

  • Transitive closure rule → if A implies B and B implies C then you can imply C from A

  • Augmentation rule

Candidate Keys can come from functional dependencies

Basis of Functional Dependencies

Prime Attribute: Given a relation R and a set of FDs, a prime attribute is an attribute that is part of a key

Third Normal Form (3NF): Given a set F of FDs, a set R is in 3NF if all FDs are trivial, have a superkey on the left, or have only prime attributes on the right.