Eliminating Redundant Storing Related Information: 1. First Normal Form (1NF)
Eliminating Redundant Storing Related Information: 1. First Normal Form (1NF)
Create a separate table for group of related data and each row must be identify by
primary key.
That means each cell must have single value and each row should be uniquely identified by
Primary key
For Example :
Name
Department
Phone Number
Rajesh
Computer
3452342,1234563,2345612
Suresh
Electronics
2398521,2323177,5302994
Praba
Civil
3958218
In the above we can see the duplicate columns phone numbers have more than one value , we
have to eliminate that and create a group of related data with Unique row identification by
specifying a primary key for the table
Rule 1. By applying above rule each cell must have one value above table changes like below
Name
Department
Rajesh
Suresh
Praba
Computer
Electronics
Civil
Phone
Number
3452342
2398521
3958218
Phone
Number
1234563
2323177
Phone
Number
2345612
5302994
Rule 2 & 3 . By applying second rule and third rule no more duplicate columns and each row
must be unique is applied to above table.
Id
1
2
3
Name
Rajesh
Rajesh
Rajesh
Department
Computer
Computer
Computer
Phone Number
3452342
1234563
2345612
4
5
6
7
Suresh
Suresh
Suresh
Praba
Electronics
Electronics
Electronics
Civil
2398521
2323177
5302994
3958218
EmpId
1
2
3
Name
Rajesh
Suresh
Praba
Department
Computer
Electronics
Civil
Id
1
2
3
4
5
6
7
EmpId
1
1
1
2
2
2
3
PhoneNumber
3452342
1234563
2345612
2398521
2323177
5302994
3958218
In the above table Empid is played as Primary key for the first table and foreign key for the
second table.
Product
LED
AC
Fridge
Price
23000
15000
12000
Tax
20%
10%
15%
From the above table you can see that Tax Column is not dependent on Product Primary key
column, It is dependent on Price so we separate that in to two different table.
Product
LED
AC
Fridge
Price
23000
15000
12000
Price
23000
15000
12000
Tax
20%
10%
15%
ManagerId
M1
M2
EmployeeId
E1
E1
TaskID
T1
T1
ManagerId
M1
M2
EmployeeId
E1
E1
TaskID
T1
T1
EmployeeId
E1
EmployeeName
Rajesh
EmployeeName
Rajesh
Rajesh
That's it from this article we can see the normalization and there concepts Fully.