DD 6 4
DD 6 4
DD 6 4
6-4
Third Normal Form
Objectives
This lesson covers the following objectives:
Identify transitive dependencies in a data model
Define the rule of Third Normal Form in the normalization
process
Examine a non-normalized entity and determine which rule,
or rules of normalization are being violated
Apply the rule of Third Normal Form to resolve a violation in
the model
DDS6L4
Third Normal Form
Purpose
Your goal as a database designer is to "store information in
one place only and in the best possible place."
Following the rules of normalization helps you achieve this
goal.
You may want to enter different kinds of information for a
friend in your personal address book: phone number,
address, name of school or place of work.
DDS6L4
Third Normal Form
Purpose
If you have several friends who go to the same school, and
you enter the schools street address along with each of
them, you would not only be duplicating data but causing
potential problems - for instance, if the school moved and
changed its address, you would have to go back and change it
everywhere!
Normalization is a process to eliminate these kinds of
problems.
DDS6L4
Third Normal Form
DDS6L4
Third Normal Form
Third Normal
Form Violation
CD
# id
* title
* producer
* year
o store name
o store address
Third Normal
Form Violation
DDS6L4
Third Normal Form
CD
# id
* title
* producer
* year
o store name
o store address
DDS6L4
Third Normal Form
Third Normal
Form Violation
CD
# id
* title
* producer
* year
CD
# id
* title
* producer
* year
o store name
o store address
contained in
contains
STORE
# number
* name
* address
Third Normal
Form
Third Normal
Form Violation
CD
# id
* title
* producer
* year
CD
# id
* title
* producer
* year
o store name
o store address
contained in
contains
STORE
# number
* name
* address
Third Normal
Form
DDS6L4
Third Normal Form
Third Normal
Form Violation
DDS6L4
Third Normal Form
CITY
# id
* name
* size
* population
* mayor
* state
* state flower
10
Third Normal
Form
DDS6L4
Third Normal Form
Third Normal
Form Violation
CITY
# id
* name
* size
* population
* mayor
CITY
# id
* name
* size
* population
* mayor
* state
* state flower
in
have
STATE
# id
* name
* flower
11
DDS6L4
Third Normal Form
EMPLOYEE
# id
* name
* address
* birth place
o partner name
o partner birth date
DEPARTMENT
# number
* name
* budget
part of
composed
of
Third Normal
Form Violation
12
EMPLOYEE
# id
* name
* address
* birth place
o partner name
o partner birth date
DEPARTMENT
# number
* name
* budget
part of
composed
of
Third Normal
Form Violation
DDS6L4
Third Normal Form
13
EMPLOYEE
# id
* name
* address
* birth place
part of
composed
of
DEPARTMENT
# number
* name
* budget
have
the dependent of
Third Normal
Form
PARTNER
# name
* birth date
DDS6L4
Third Normal Form
14
EMPLOYEE
# id
* name
* address
* birth place
part of
composed
of
DEPARTMENT
# number
* name
* budget
have
the dependent of
Third Normal
Form
PARTNER
# name
* birth date
DDS6L4
Third Normal Form
15
EMPLOYEE
# id
* name
* address
* birth place
part of
composed
of
DEPARTMENT
# number
* name
* budget
have
the dependent of
Third Normal
Form
PARTNER
# name
* birth date
DDS6L4
Third Normal Form
16
Terminology
Key terms used in this lesson included:
Third Normal Form (3NF)
Transitive dependency
DDS6L4
Third Normal Form
17
Summary
In this lesson, you should have learned how to:
Identify transitive dependencies in a data model
Define the rule of Third Normal Form in the normalization
process
Examine a non-normalized entity and determine which rule,
or rules of normalization are being violated
Apply the rule of Third Normal Form to resolve a violation in
the model
DDS6L4
Third Normal Form
18