您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 丽水分类信息网,免费分类信息发布

DBMS 中的传递依赖

2024/3/26 20:41:48发布7次查看
什么是传递依赖当间接关系导致函数依赖时,称为传递依赖。
如果 p -> q 和 q -> r 为真,那么 p-> r 是传递依赖。
要实现 3nf,消除传递依赖。
示例<movielisting>
movie_id
td> listing_id
listing_type
dvd_price ($)
m08
l09 >
犯罪
180 >
m03
m03
l05
戏剧
250
m05
l09
犯罪
180
上表不在3nf,因为它具有传递函数依赖 -
movie_id -> listing_id listing_id -> listing_type
因此,以下具有传递函数依赖性。
movie_id -> listing_type
the above states the relation <movielisting> violates the 3rd normal form (3nf).
to remove the violation, you need to split the tables and remove the transitive functional dependency.
<movie>
movie_id
listing_id
dvd_price ($)
m08 l09 180
m03 l05 250
m05 l09 180
<listing>
listing_id
listing_type
l09 crime
l05 drama
l09 crime
now the above relation is in third normal form (3nf) of normalization.
以上就是dbms 中的传递依赖的详细内容。
丽水分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录