问答题X 纠错
(1)该关系模式存在以下函数依赖:Sno→Sname,Sdept→MN,Sno→Sdept,(Sno,CoursE.→Grade显然关系模式的码为Sno,Course。(2)原关系模式是属于1NF的,非主属性Grade完全按函数依赖于码,而其他非主属性对码的函数依赖均为部分函数依赖,所以不属于2NF。可将该关系模式分解为2NF如下:Student1(Sno,Sname,Sdept,MN)Student2(Sno,Course,GradE.(3)(2)中的关系模式Student1中存在Sno→Sdept,Sdept→MN,即非主属性MN传递依赖于码Sno,所以Student1可以进一步分解为3NF如下:Student11(Sno,Sname,Sdept)Student12(Sdept,MN)而Student2中不存在非主属性对码的传递依赖,故已经属于3NF。最终原关系模式分解为3NF得到:Student11(Sno,Sname,Sdept)Student12(Sdept,MN)Student2(Sno,Course,GradE.
你可能喜欢
问答题