- 1、本文档共82页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Step3. With respect to R2(CTHRS) the restriction of F to R2(CTHRS) is F2={C ?T, TH ?R, HR ?C, HS ?R} the candidate key is HS R2 (CTHRS) is not in BCNF, because there is C ?T in F2, and C is not the candidate key of R2 R2(CTHRS) is decomposed into R21(CT) and R22(CHRS) R21(CT) is in BCNF , F21= {C ?T} Step4. With respect to R22(CHRS) the restriction of F to R22(CHRS) is F22={HR ?C, HS ?R, CH ? R} /* CH ?TH, TH ?R the candidate key is HS R22(CHRS) is not in BCNF, because there is HR ?C in F22, and HR is not candidate key of R22 R22(CHRS) is decomposed into R221(HRC) and R222(HRS) R221(HRC) is in BCNF Step5. With respect to R222(HRS), the restriction of F to R222(HRS) is F222={HS ?R}, and the candidate key is HS R222(HRS) is in BCNF Finally, the BCNF decomposition of R(C, T, H, R, S, G) is R1(CSG) , R21(CT) , R221(HRC) , R222(HRS) Testing for BCNF To check if a non-trivial dependency ???? causes a violation of BCNF 1. compute ?+ (the attribute closure of ?), and 2. verify that it includes all attributes of R, that is, it is a superkey of R. Simplified test: To check if a relation schema R is in BCNF, it suffices to check only the dependencies in the given set F for violation of BCNF, rather than checking all dependencies in F+. If none of the dependencies in F causes a violation of BCNF, then none of the dependencies in F+ will cause a violation of BCNF either. DataBase System Concepts However, using only F is incorrect when testing a relation in a decomposition of R Consider R = (A, B, C, D, E), with F = { A ? B, BC ? D} Decompose R into R1 = (A,B) and R2 = (A,C,D, E) Neither of the dependencies in F contain only attributes from (A,C,D,E) so we might be mislead into thinking R2 satisfies BCNF. In fact, dependency AC ? D in F+ shows R2 is not in BCNF. DataBase System Concepts To check if a relation Ri in a decomposition of R is in BCNF, use the original set of dependencies F that hold on R, but with the following test: for ev
您可能关注的文档
- 510版本功能报告剖析.docx
- 成都概况8讲解.ppt
- 施工现场临时用电管理办法讲解.doc
- 555门铃电路讲解剖析.ppt
- 我国能源消费量的计量分析讲解.docx
- 施工现场灭火及应急疏散预案讲解.doc
- 【金版学案】2015-2016学年高中物理第7章第五节探究弹性势能的表达式学案新人教版必修2剖析.doc
- 施工现场质量、安全管理体系讲解.doc
- 施工扬尘治理专项方案0427讲解.doc
- 【经典必备》薪酬设计常用67张表格剖析.doc
- [中央]2023年中国电子学会招聘应届生笔试历年参考题库附带答案详解.docx
- [吉安]2023年江西吉安市青原区总工会招聘协理员笔试历年参考题库附带答案详解.docx
- [中央]中华预防医学会科普信息部工作人员招聘笔试历年参考题库附带答案详解.docx
- [保定]河北保定市第二医院招聘工作人员49人笔试历年参考题库附带答案详解.docx
- [南通]江苏南通市崇川区人民法院招聘专职人民调解员10人笔试历年参考题库附带答案详解.docx
- [厦门]2023年福建厦门市机关事务管理局非在编工作人员招聘笔试历年参考题库附带答案详解.docx
- [三明]2023年福建三明市尤溪县招聘小学幼儿园新任教师79人笔试历年参考题库附带答案详解.docx
- [哈尔滨]2023年黑龙江哈尔滨市木兰县调配事业单位工作人员笔试历年参考题库附带答案详解.docx
- [上海]2023年上海市气象局所属事业单位招聘笔试历年参考题库附带答案详解.docx
- [台州]2023年浙江台州椒江区招聘中小学教师40人笔试历年参考题库附带答案详解.docx
文档评论(0)