Database Normalization: Normalization is the process of splitting or organizing data to reduce redundancy and avoid data anomalies.
Here is a list of Normal Forms in SQL:
1NF (First Normal Form)
2NF (Second Normal Form)
3NF (Third Normal Form)
BCNF (Boyce-Codd Normal Form)
4NF (Fourth Normal Form)
5NF (Fifth Normal Form)
6NF (Sixth Normal Form)
However, in most practical applications, normalization achieves its best in the 3rd Normal Form. The evolution of Normalization in SQL theories is illustrated below-
Database Normalization With Examples
Database Normalization Example can be easily understood with the help of a case study. Assume a video library maintains a database of movies rented out. Without any normalization in the database, all information is stored in one table, as shown below. Let’s understand the Normalization database with a normalization example with a solution:
Here you see the Movies Rented column has multiple values. Now let’s move into 1st Normal Forms:
1NF (First Normal Form) Rules:No multivalue attribute.
No comments:
Post a Comment