Normalization in Database Management System
Normalization in Database Management System
MANAGEMENT SYSTEM
Database normalization
• Normalization is the process of reorganizing data in a database so that it
meets two basic requirements:
i. There is no redundancy of data.
ii. Data dependencies are logical.
• First Normal Form defines that all the attributes in a relation must have
atomic domains. The values in an atomic domain are indivisible units.
• 1 NF Decomposition
a. Place all items that appear in the repeating group in a new table
b. Designate a primary key for each new table produced.
c. Duplicate in the new table the primary key of the table from which the
repeating group was extracted or vice versa.
Example of a table not in 1NF :
SuperMan
Suicide Squad
Table in 1NF after eliminating:
Studio Director Movies
Now it is in 1NF.
Second Normal Form – 2NF
DCEU Gotham
Gotham 95
FOx New York
Hollywood 99
Paramount Hollywood
Boyce Codd Normal Form (BCNF) – 3.5NF
Superman
Batman vs Durham Drama
Superman
A Walk to New York Romance
remember
Soultuin of 4NF
Move the two multi-valued relations to separate tables
Identify a primary key for each of the new entity.
New Scheme {MovieName, ScreeningCity}
New Scheme {MovieName, Genre}
MovieName ScreeningCity MovieName Genre
• Fifth normal form (5NF), also known as project-join normal form (PJ/NF) is
a level of database normalization designed to reduce redundancy in
relational databases recording multi-valued facts by
isolating semantically related multiple relationships. A table is said to be in
the 5NF if and only if every non-trivial join dependency in it is implied by
the candidate keys.
Example of 5NF
Superman
T4 Sony Spiderman
Homecoming
TITLE: Solution of 5NF