






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























Lecture 6: Schema refinement: Functional dependencies
www.cl.cam.ac.uk/Teaching/current/Databases/
Next two lectures
Student(sid,sname,address) Course(cid,cname) Enrolled(sid,cid,grade)
sid sname addres s
ci d
cname grade
124 Britney USA 206 Database A++ 204 Victoria Essex 202 Semantics C 124 Britney USA 201 S/Eng I A+ 206 Emma London 206 Database B- 124 Britney USA 202 Semantics B+
10
Exercise: Prove that these are consequences of Armstrong’s axioms
Suppose that F \ X Y and F \ X Z.
By augmentation we have
F \ X X,Y
since X U X = X. Also by augmentation
F \ X,Y Z,Y
Therefore, by transitivity we have
F \ X Z,Y QED
A
First show that
Suppose then and
Since
A
In the other direction, we must show that
Suppose Then there must exist records
and There must also exist
Therefore, we have
so that
QED
But the functional dependency tells us that