- 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-2024学年高三上学期第一次月考地理试题含答案.docx
- 备战2024年高考物理一轮重难点复习 第十三章 近代物理.docx
- 江苏省高邮市一中2021-2022学年高三上学期第一次月考语文试题(原卷版).docx
- 江苏省华罗庚中学2023-2024学年高三上学期12月阶段检测数学试卷含答案.docx
- 江苏省海门中学2023-2024学年高三上学期第一次调研考试地理试题及答案.docx
- 备战2024年高考物理一轮重难点复习 第九章 恒定电流.docx
- 江苏省高邮市2023-2024学年高三下学期3月学情调研数学试题含答案.docx
- 备战2024年高考物理一轮重难点复习 实验十一:探究影响感应电流方向的因素.docx
- 备战2024年高考物理一轮重难点复习 实验三:验证平行四边形定则.docx
- 备战2024年高考物理一轮重难点复习 第十四章 光.docx
文档评论(0)