dbms 中的传递依赖

甚么是传送依赖

当直截相干招致函数依赖时,称为传送依赖。

何如 P -> Q 以及 Q -> R 为实,那末 P-> R 是通报依赖。

要完成 3NF,打消通报依赖。

事例

Movie_ID

td>
Listing_ID

Listing_Type

DVD_Price ($)

M08

L09 >

犯法

180 >

M03

M03

L05

戏剧

两50

M05

L09

犯法

180

上表没有正在3NF,由于它存在传送函数依赖 -

Movie_ID -> Listing_ID

Listing_ID -> Listing_Type

因而,下列存在通报函数依赖性。

Movie_ID -> Listing_Type

The above states the relation violates the 3rd Normal Form (3NF).

To remove the violation, you need to split the tables and remove the transitive functional dependency.

Movie_ID

Listing_ID

DVD_Price ($)

M08 L09 180

M03 L05 二50

M05 L09 180

Listing_ID

Listing_Type

L09 Crime
L05 Drama
L09 Crime

Now the above relation is in Third Normal Form (3NF) of Normalization.

以上便是DBMS 外的传送依赖的具体形式,更多请存眷萤水红IT仄台此外相闭文章!

点赞(41) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部