Tuesday, September 11, 2012

What is Normalization?

Normalization is a method of break down complex table’s structure into simple table structure by using certain rules. Normalization usually involves dividing a database into two or more tables and defining relationships between the tables. The objective of Normalization is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database via the defined relationships. With the help of this method we can reduce redundancy in a table and remove the problems of inconsistency and reduce the amount of space.

The Normal Forms

Normalization results in the formation of tables that fulfill certain specified rules and represents certain normal forms. The database community has developed a series of guidelines for ensuring that databases are normalized. The normal forms are used to ensure inconsistencies are not introduced in the database. Several normal forms have been identified .The most important and widely used normal forms are.
·         First Normal Form (1 NF)
·         Second Normal Form (2 NF)
·         Third Normal Form (3 NF)
·         Fourth Normal Form (4NF)
·         Fifth Normal Form (5NF)
·         Boyce-Codd Normal Form(BCNF)

First Normal Form (1 NF)

·         Eliminate duplicative columns from the same table.
·         Create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key).

Second Normal Form (2 NF)

·         Meet all the requirements of the first normal form.
·         Remove subsets of data that apply to multiple rows of a table and place them in separate tables.
·         Create relationships between these new tables and their predecessors through the use of foreign keys

Third Normal Form (3 NF)

·         Meet all the requirements of the second normal form.
·         Remove columns that are not dependent upon the primary key.

Fourth Normal Form (4 NF)

·         Meet all the requirements of the third normal form.
·         A relation is in 4NF if it has no multi-valued dependencies.
Remember, these normalization guidelines are cumulative. For a database to be in 2NF, it must first fulfill all the criteria of a 1NF database.

Fifth Normal Form (5 NF)

·         One advantage of fifth normal form is that certain redundancies can be eliminated.
·         Fifth normal form does not differ from fourth normal form unless there exists a symmetric constraint.
·         Fifth normal form deals with cases where information can be reconstructed from smaller pieces of information that can be maintained with less redundancy. 2 NF, 3 NF, and 4 NF normal forms also serve this purpose, but 5 NF normal forms generalize to cases not covered by the others.

Boyce-Codd Normal Form (BCNF)

·         BCNF is based on the concept of a determinant.
·         A determinant is any attribute (simple or composite) on which some other attribute is fully functionally dependent.
·         A relation is in BCNF is, and only if, every determinant is a candidate key.


http://mindstick.com/Articles/88d5a271-b369-4c0a-ae80-01e66df98b6a/?What%20is%20Normalization?

No comments:

Post a Comment