Relational Database Design
Relational Database Design
Design
• Decomposition of R = (A, B)
R2 = (A) R2 = (B)
A B
1
A B 2
1
2
1
A (r) B (r) A B
1
2
1
2
Decomposition
Minimizing redundancy
Minimizing insertion, deletion and update
anomalies
First Normal Form
Second Normal Form
Third (Boyce-Codd Normal Form, BCNF)
Fourth (Multivalued dependency)
Fifth (Join dependency)
First Normal Form
There should be no
Table must be 2NF
transitive dependency
No nonprime attribute
Non prime can not
of R is transitively
predict nonprime
dependent on primary
attribute
key
• Disadvantages of 3NF
➢Use of null values
➢Repetition of information
• Goals of database design with functional dependencies:
➢BCNF
➢Losslessness
➢Dependency preservation