将函数依赖关系转换为第三范式

发布于 2024-08-25 21:42:34 字数 140 浏览 2 评论 0原文

我在将关系模式分解为一组 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

追风人 2024-09-01 21:42:34

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文