Selected topic
Normalization
Prefer practical output? Use related tools below while reading.
Third Normal Form (3NF) is a normalization rule in database design that aims to reduce data redundancy and improve data integrity. It was first introduced by Edgar F. Codd, the father of relational databases.
Orders table with the following columns:| OrderID | CustomerName | OrderDate | ProductID | Quantity |
| --- | --- | --- | --- | --- |
| 1 | John Smith | 2022-01-01 | 101 | 2 |
| 1 | John Smith | 2022-01-01 | 102 | 3 |
| 2 | Jane Doe | 2022-01-15 | 103 | 4 |
This table is not in 3NF because the CustomerName column depends on another non-key attribute (OrderID) to identify which customer it belongs to. To normalize this table into 3NF, we need to create two separate tables:
OrderDetails):Now, each table has a clear primary key (e.g., CustomerID in the Customers table) and no non-key attribute depends on another non-key attribute. This design adheres to the 3NF rules.
Benefits of 3NF:
Customers table), rather than multiple places throughout the database.