Normalization of Relational Database
Normalization of Relational Database
In the third table Watchtime and WatchedAt fully depend on both UserId and
VideoID because User watched the video on this date and time.
If any attribute depends on any one part of Composite key then it is partial
dependency. For example Email only depends on UserID, Email does not
depend on VideoId.
As there is a rule in Second normal form there should be no partial
dependency, therefore we have to move the Email to First Table because
email fully depend on userId.
Summary:
In all the Normal forms we divide single table into separate tables to
reduce redundancy(duplicate) and inconsistency(mistake).