登机门|登机门CS 2008 |问题69

考虑以下数据库库的关系方案: 书(书名、作者、目录号、出版商、年份、价格) 收藏(标题、作者、目录号)

null

具有以下功能依赖关系:

I. Title Author --> Catalog_no
II. Catalog_no --> Title, Author, Publisher, Year
III. Publisher Title Year --> Price 

假设{Author,Title}是这两个方案的密钥。以下哪项陈述是正确的? (A) 书和藏品都在BCNF中 (B) 这本书和藏书都只有3NF版本 (C) 书是2NF,藏品是3NF (D) 这本书和藏书都只有2NF版本 答复: (C) 说明:

Book (Title, Author, Catalog_no, Publisher, Year, Price)
Collection (Title, Author, Catalog_no) 

具有以下功能依赖关系:

I. Title, Author --> Catalog_no
II. Catalog_no --> Title, Author, Publisher, Year
III. Publisher, Title, Year --> Price  

Assume {Author, Title} is the key for both schemes 
  • 表“集合”在中 BCNF 因为只有一个函数依赖项“Title Author–>Catalog_no”和{Author,Title}是收集的关键。
  • 这本书不在BCNF中,因为目录号不是键,并且存在一个函数依赖关系“目录号–>标题作者出版年份”。
  • 书不在里面 3NF 因为非主要属性(出版商年份)在传递上依赖于键[标题,作者]。
  • 书在里面 2NF 因为表中的每个非素数属性要么依赖于整个候选键[Title,Author],要么依赖于另一个非素数属性。 在TableBook中,候选键是{Title,Author}和{Catalog_no}。在table Book中,非素数属性(在任何候选键中都不会出现的属性)是Publisher、Year和Place

请参考 数据库规范化|范式 有关正规形式的详细信息。 这个问题的小测验

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享