數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt

數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt

ID:56477106

大小:778.00 KB

頁數(shù):87頁

時間:2020-06-19

數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt_第1頁
數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt_第2頁
數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt_第3頁
數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt_第4頁
數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt_第5頁
資源描述:

《數(shù)據(jù)庫系統(tǒng)概念5e-Chapter_7__Relational_Database_Design.ppt》由會員上傳分享,免費在線閱讀,更多相關內容在教育資源-天天文庫。

1、Chapter7:RelationalDatabaseDesignChapter7:RelationalDatabaseDesignFeaturesofGoodRelationalDesignAtomicDomainsandFirstNormalFormDecompositionUsingFunctionalDependenciesFunctionalDependencyTheoryAlgorithmsforFunctionalDependenciesDecompositionUsingMultivaluedDependenciesMoreNormalFo

2、rmDatabase-DesignProcessModelingTemporalDataTheBankingSchemabranch=(branch_name,branch_city,assets)customer=(customer_id,customer_name,customer_street,customer_city)loan=(loan_number,amount)account=(account_number,balance)employee=(employee_id.employee_name,telephone_number,start_

3、date)dependent_name=(employee_id,dname)account_branch=(account_number,branch_name)loan_branch=(loan_number,branch_name)borrower=(customer_id,loan_number)depositor=(customer_id,account_number)cust_banker=(customer_id,employee_id,type)works_for=(worker_employee_id,manager_employee_i

4、d)payment=(loan_number,payment_number,payment_date,payment_amount)savings_account=(account_number,interest_rate)checking_account=(account_number,overdraft_amount)CombineSchemas?Supposewecombineborrowerandloantogetbor_loan=(customer_id,loan_number,amount)Resultispossiblerepetitiono

5、finformation(L-100inexamplebelow)ACombinedSchemaWithoutRepetitionConsidercombiningloan_branchandloanloan_amt_br=(loan_number,amount,branch_name)Norepetition(assuggestedbyexamplebelow)WhatAboutSmallerSchemas?Supposewehadstartedwithbor_loan.Howwouldweknowtosplitup(decompose)itintobo

6、rrowerandloan?Writearule“iftherewereaschema(loan_number,amount),thenloan_numberwouldbeacandidatekey”Denoteasafunctionaldependency:loan_number?amountInbor_loan,becauseloan_numberisnotacandidatekey,theamountofaloanmayhavetoberepeated.Thisindicatestheneedtodecomposebor_loan.Notalldec

7、ompositionsaregood.Supposewedecomposeemployeeintoemployee1=(employee_id,employee_name)employee2=(employee_name,telephone_number,start_date)Thenextslideshowshowweloseinformation--wecannotreconstructtheoriginalemployeerelation--andso,thisisalossydecomposition.ALossyDecompositionFirs

8、tNormalFormDomainisatomicifitsele

當前文檔最多預覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當前文檔最多預覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學公式或PPT動畫的文件,查看預覽時可能會顯示錯亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權歸屬用戶,天天文庫負責整理代發(fā)布。如果您對本文檔版權有爭議請及時聯(lián)系客服。
3. 下載前請仔細閱讀文檔內容,確認文檔內容符合您的需求后進行下載,若出現(xiàn)內容與標題不符可向本站投訴處理。
4. 下載文檔時可能由于網絡波動等原因無法下載或下載錯誤,付費完成后未能成功下載的用戶請聯(lián)系客服處理。