Normalization
Normalization
Database
Normalization
Dependencies: Definitions
Multivalued Attributes (or repeating groups): nonkey attributes or groups of non-key attributes the
values of which are not uniquely identified by
(directly or indirectly) (not functionally dependent on)
the value of the Primary Key (or its part).
Dependencies: Definitions
Dependencies: Definitions
Example 1: Determine NF
ISBN Title
ISBN Publisher
Publisher Address
BOOK
ISBN
Title
Publisher
Address
Example 1: Determine NF
ISBN Title
ISBN Publisher
Publisher Address
BOOK
ISBN
Title
Publisher
Address
Example 1: Determine NF
ISBN Title
ISBN Publisher
Publisher Address
BOOK
ISBN
Title
Publisher
Address
Example 1: Determine NF
ISBN Title
ISBN Publisher
Publisher Address
BOOK
ISBN
Title
Publisher
Address
Example 1: Determine NF
ISBN Title
ISBN Publisher
Publisher Address
BOOK
ISBN
Title
Publisher
Address
10
Example 2: Determine NF
Product_ID Description
All attributes are directly or
indirectly determined by the
primary key; therefore, the relation
is at least in 1 NF
ORDER
Order_No
Product_ID
Description
11
Example 2: Determine NF
Product_ID Description
The relation is at least in 1NF.
There is a COMPOSITE Primary Key (PK)
(Order_No, Product_ID), therefore there can be
partial dependencies. Product_ID, which is a part
of PK, determines Description; hence, there is a
partial dependency. Therefore, the relation is not
2NF. No sense to check for transitive
dependencies!
ORDER
Order_No
Product_ID
Description
12
Example 2: Determine NF
Product_ID Description
We know that the relation is at least
in 1NF, and it is not in 2 NF.
Therefore, we conclude that the
relation is in 1 NF.
ORDER
Order_No
Product_ID
Description
13
Example 2: Determine NF
Product_ID Description
In your solution you will write the
following justification:
1) No M/V attributes, therefore at least
1NF
2) There is a partial dependency
(Product_ID Description), therefore
not in 2NF
Conclusion: The relation is in 1NF
ORDER
Order_No
Product_ID
Description
14
Example 3: Determine NF
Part_ID Description
Part_ID Price
Part_ID, Comp_ID No
PART
Part_ID
Descr
Price
Comp_ID
No
15
Example 3: Determine NF
Part_ID Description
Part_ID Price
Part_ID, Comp_ID No
PART
Part_ID
Descr
Price
Comp_ID
No
16
17
18
19
STUDENT_COURSE
Stud_ID
Course
Units
101
MSI 250
101
MSI 415
125
MSI 331
20
21
Partial
Dependencies
22
23
STUDENT_COURSE
Stud_ID
Course_ID
101
MSI 250
101
MSI 415
125
MSI 331
COURSE
Course_ID
Units
MSI 250
3.00
MSI 415
3.00
MSI 331
3.00
24
25
26
DEPARTMENT
Dept_ID Dept_Name
1
Acct
Mktg
27