









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!










This is a poor schema design
Is this one better?
StudentInfo(sid, sname, crno, subj, cid, exp-grade)
Student(sid, sname) Course(crno, cid) Subject(cid, subj) Takes(sid, crno, exp-grade)
An instance r of R satisfies FD X Y if, for any two tuples t1, t2 2 r, t1[X ] = t2[X] implies t1[Y] = t2[Y]
A key is a set of attributes where: If keys match, then the tuples match
A functional dependency (FD) is a generalization:
If an attribute set determines another, written X! Y then if two tuples agree on attribute set X, they must agree on Y:
sid! sname
All attributes are PRIME (since CS and ZS are keys) Therefore, in 3NF, but not in BCNF
F={A B, AC D, AB C}
X+ {ABCD}