Professional Documents
Culture Documents
6-2
Functional Dependency
• Relationship between two attributes
– For any relation R, attribute B is functionally depe
ndent on attribute A if, for every valid instance of
A, that value of A uniquely determines the value o
f B.
6-3
Normal Form Description
6-4
First Normal Form (1NF)
• Contains no repeating elements
– any entity that contains one or more multivalued
attributes must be transformed
• Figure 6-10
6-5
Figure 6-10. The Three Common Normalized Forms
6-6
Second Normal Form (2NF)
• A relation is in 1NF and it contains no partial fu
nctional dependencies.
• Partial functional dependency exists when one
or more of the nonkey attributes can be define
d by less than the full primary key.
6-7
Figure 6-11. Second Normal Form
6-8
Third Normal Form (3NF)
• A relation is in 2NF and no transitive depende
ncies exist.
– Transitive Dependency: when one or more nonkey
attributes can be derived from one or more other
nonkey attributes
6-9
Figure 6-12. Third Normal Form
6-10
The fully Normalized ERD
• Shows all the entities, their attributes, and the
ir relationships to all other entities.
• From the logical data model, the physical mod
el of the database can be easily constructed.
6-11