DEMO Normalization1
DEMO Normalization1
Normalization is the Process of Organizing the data and the attributes of a database.
Here, in Game row, there are two games in one single cell. So it is “multi
valued attribute”. This is not acceptable in 1NF, and should be eliminated
to convert into 1NF.
Stud ID Stud Name Course Subject
501 Raja BSc Physics
501 Raja BSc Maths
502 Suja BCom Zoology
503 Suresh BBA Sanskrit
503 Suresh BBA Art
504 Manisha BA Economics
505 Kamal BL HR Laws
(If primary key has duplicates, that is known as partial dependency, that should avoided to fulfil the 2NF’s criteria)
This is simple method to store game separately in 1NF. Now, this becomes
1NF. 1NF wants to maintain Atomic Property ie., stores one value in each
cell.
2NF: In 2NF relation must be in 1NF. In 2NF, all Non-Key Attributes are
fully functional dependent on the Primary Key.
Stud ID Stud Name Course Subject
(Primary Attribute) (Non-Primary Attribute) (Non-Primary Attribute) (Non-Primary Attribute)
501 Raja BSc Physics
501 Raja BSc Maths
502 Suja BCom Zoology
503 Suresh BBA Sanskrit
503 Suresh BBA Art
504 Manisha BA Economics
505 Kamal BL HR Laws
• It also in 1NF from and every non-Primary attribute should depend
on Primary Key.
• Creating 1 table to remove the partial dependent column & to
maintain the Primary Key for the table and 2nd table for the partial
dependent column.
• Now, there is no duplicate records as well.
• The following tables are satisfying the conditions of 2NF relation.
BSc 5000
BCom 4000
BBA 7000
BA 6000
BL 8000
Raja 501
Suja 502
Suresh 503
Manisha 504
Kamal 505
Lakshmi 506
BSc 5000
BCom 4000
BBA 7000
BA 6000
BL 8000
Table 2: Employee_Skill
EmployeeID Skill
1 Skill1
1 Skill2
1 Skill1
2 Skill3
By separating the multivalued attributes into different tables, we achieve
4NF.
Before diving into 5NF, it's crucial to understand join dependencies. A join
dependency exists when a table can be reconstructed by joining multiple
projections of itself. This indicates a potential redundancy or inconsistency
in the data.
Student Professor
A P1
A P2
B P1
B P3
Fifth Normal Form is a theoretical concept and is rarely applied in practice.
While it can provide the ultimate level of normalization, the complexity
and overhead often outweigh the benefits. Most database designs achieve
sufficient data integrity and performance with lower normal forms like
3NF or BCNF.
================ =================