Tuesday, September 2, 2014

Normalization

Database Normalization


  • Proposed by Codd (1972)
  • Introduced 3 normal forms, the first, second and third normal form
  • A stronger definition of 3NF  - called Boyce-Codd normal form (CDNF) was               proposed later
  • Later, 4NF and 5NF were proposed


The minimum, and most common, goal is to achieve 3NF.



Normalization Is the process of analyzing the given relational schema based on its functional dependencies and keys to achieve the desirable properties of:


  • Minimizing redundancy
  • Minimizing the insertion, deletion, and updating  anomalies
  • Minimize data storage
  • Unsatisfactory relation schema that do not meet  a given normal form test are decomposed into smaller relational schemas that meet the test and hence possess the desired properties.
  • Key Concepts in normalization are Functional Dependency and keys



Example

  • Sales
(Order#, Date, CustID, Name, Address, City, State, Zip, {Product#, ProductDesc, Price, QuantityOrdered}, Subtotal, Tax, S&H, Total)


What are the problems with using a single table for all order information?
  • Insert Anomaly
  • Update Anomaly
  • Delete Anomaly


No comments:

Post a Comment