首頁  >  文章  >  資料庫  >  DBMS 中的傳遞依賴

DBMS 中的傳遞依賴

WBOY
WBOY轉載
2023-09-07 12:05:051074瀏覽

DBMS 中的传递依赖

什麼是傳遞依賴

當間接關係導致函數依賴時,稱為傳遞依賴。

如果 P -> Q 和 Q -> R 為真,那麼 P-> R 是傳遞依賴。

要實現 3NF,消除傳遞依賴。

範例

##M03#L05#250#250
Movie_ID

td>
#Listing_ID

Listing_Type

DVD_Price ( $)

M08

#L09 >

犯罪

180 >

#M03

##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).M08180M03250
Movie_ID

#Listing_ID

#DVD_Price ($)

L09

#L05

M05L09

180

Listing_ID

################# ## ### ### ###############Listing_Type######################L09#######Crime###### #######L05######Drama############L09######Crime################ ######Now the above relation is in Third Normal Form (3NF) of Normalization.###

以上是DBMS 中的傳遞依賴的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:tutorialspoint.com。如有侵權,請聯絡admin@php.cn刪除