First Normal Form
First Normal Form
Normalization is a
systematic approach of decomposing tables to eliminate data redundancy and undesirable
characteristics like Insertion, Update and Deletion Anomalies. It is a multi-step process that puts data
into tabular form by removing duplicated data from the relational tables. Normalization is used for
mainly two purpose,<br>
As per First Normal Form, no two rows of data must contain repeating group of information i.e each set
of column must have a unique value, such that multiple columns cannot be used to fetch the same row.
Each table should be organized into rows, and each row should have a primary key that distinguishes it
as unique.<br><br>
The <em>Primary key</em> is usually a single column, but sometimes more than one column can be
combined to create a single primary key. For example consider a table which is not in First normal form
<br>
Second normal form:
<p><u>Second Normal Form:</u></p><br>
As per the Second Normal Form there must not be any partial dependency of any column on primary
key. It means that for a table that has concatenated primary key, each column in the tabe that is not
part of the primary key must depend on the entire concantenated key for its existence. If any column
depends only on one part of the concantenated key, then the table fails Second Normal Form.<br>
Third Normal Form applies that every non-prime attribute of table must be dependent on primary key,
or we can say that , there should not be the case that a non-prime attribute is determined by another
non-prime attribute. So this <em>transitive functional dependency</em> should be removed from the
table and also the table must be in Second Normal Form.<br>