将函数依赖关系转换为第三范式
我在将关系模式分解为一组 3NF 模式时遇到问题。
我有这个关系模式:R= (A, B, C, D, E, F)
具有以下函数依赖集 F:
A → ABCDEF
B→C
D→E
谁能帮帮我吗?
I have this problem decomposing a relation schema into a set of schemas that are in 3NF.
I have this relation schema: R= (A, B, C, D, E, F)
With the following set F of functional dependencies:
A → ABCDEF
B → C
D → E
Can anyone help me out?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RA = (A, B, D, F)
RB = (B, C)
RD = (D, E)
为什么? 3NF 要求删除所有传递依赖。
在 R 中,C 传递依赖于 A 到 B,E 到 D 也是如此。要删除这些属性,您需要分解表,以便删除这些传递关系,方法是提取表并使用中间项作为关键。
RA = (A, B, D, F)
RB = (B, C)
RD = (D, E)
Why? 3NF requires the removal all transitive dependencies.
In R, C is transitively dependent on A through B, and the same is true for E through D. To remove those properties, you need to decompose the tables such that those transitive relationships are removed, which you do by extracting the table and using the middle term as keys.