T2 L7 Functional Dependency
T2 L7 Functional Dependency
Topic 2 Lesson 7
Schema Refinement
Chapter 14 14.1-14.4 Connolly and Begg
Functional Dependencies
Reducing Data Redundancy
Major aim of relational database design is to group attributes
into relations to minimize data redundancy.
Benefits:
Updates to the data stored in the database are achieved
with a minimal number of operations thus reducing the
opportunities for data inconsistencies.
Reduction in the file storage space required by the base
relations thus minimizing costs.
What is wrong with this table?
branchNo bAddress
fd5
Identified functional dependencies
Functional dependencies between attributes A to E in the
Sample relation.
A→C (fd1)
C→A (fd2)
B→D (fd3)
A, B → E (fd4)
B, C → E (fd5)
Candidate keys for sample relation
A candidate key must provide the irreducibility and
uniqueness property. We do not have 1 attribute that can
determine all attributes.
A,B determines C, D, and E
B,C determines A, D, and E