Normalization
Normalization
According to the E.F. Codd, a relation will be in 1NF, if each cell of a relation
contains only an atomic value. This normal form states that an attribute of a
relation cannot hold multiple values. It should hold only single-valued
attributes. Values stored in an attribute should be of the same domain.
Example:
The following student relation is not in 1NF because the Subject attribute
contains multiple values.
Student_id Name Subject
101 JAVA 20
101 20
101 20
102 20
103 21
103 21
student_programminglangauge table:
student_id programming_langauge
101 JAVA
1 Punjab Chandigarh
2 Haryana Ambala
3 Punjab Chandigarh
4 Haryana Ambala
1 Punjab
2 Haryana
3 Punjab
4 Haryana
5 Uttar Pradesh
Table:Student_city
State City
Punjab Chandigarh
Haryana Ambala
Uttar Pradesh Ghaziabad
Now, both the tables follow the third normal form (3NF).