某商场商品数据库的商品关系模式P(商品代码,商品名称,供应商,联系方式,库存量),函数依赖集F={商品代码→商品名称,(商品代码,供应商)→库存量,供应商→联系方式}。商品关系模式P达到( );该关系模式分解成(请作答此空)后,具有无损连接的特性,并能够保持函数依赖。
- A.P1(商品代码,联系方式),P2(商品名称,供应商,库存量)
- B.P1(商品名称,联系方式),P2(商品代码,供应商,库存量)
- C.P1(商品代码,商品名称,联系方式),P2(供应商,库存量)
- D.P1(商品代码,商品名称),P2(商品代码,供应商,库存量),P3(供应商,联系方式)
正确答案及解析
正确答案
解析
根据题意,零件P关系中的(商品代码,供应商)可决定的零件P关系的所有属性,所以零件P关系的主键为(商品代码,供应商);又因为,根据题意(商品代码,供应商)→商品名称,而商品代码→商品名称,存在部分依赖关系不满足2NF,因此该关系模式属于1NF。
由于关系模式P属于1NF,1NF存在冗余度大、修改操作的不一致性、插入异常和删除异常四个问题。所以需要对模式分解,其中选项A、选项B和选项C分解后的P1∩P2=?,是有损连接,并且分解后的关系式丢失了函数依赖,如选项A中的P1(商品代码,联系方式)与原F关系式中的"商品代码→商品"不相符,即不保持函数依赖。
包含此试题的试卷
你可能感兴趣的试题
Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.
-
- A.Artificial Intelligence
- B.Cloud Computing
- C.Internet of Things
- D.Big Data
- 查看答案
In project human resource management , ( )is not a source of power for the project manager.
-
- A.referent power
- B.expert power
- C.reward power
- D.audit power
- 查看答案
At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.
-
- A.detail feasibility analysis
- B.opportunity analysis
- C.economic feasibility analysis
- D.risk analysis
- 查看答案
( )is a grid that shows the project resources assigned to each work package.
-
- A.Stakeholder engagement assessment matrix
- B.Requirements traceability matrix
- C.Probability and impact matrix
- D.Responsibility assignment matrix
- 查看答案
Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.
-
- A.digital
- B.networking
- C.intelligentize
- D.informatization
- 查看答案