某软件公司受快递公司委托,拟开发一套快递业务综合管理系统,实现快递单和物流信息的综合管理。项目组在系统逻辑数据模型设计中,需要描述的快递单样式如图2-1所示,图 2-2 是项目组针对该快递单所设计的候选实体及其属性。


图2-2 候选实体及属性
【问题1】(6分)
数据库设计主要包括概念设计、逻辑设计和物理设计三个阶段,请用 200字以内文字说明这三个阶段的主要任务。
【问题 2】(11分)
根据快递单样式图,请说明:
1)图 2-2中三个候选实体对应的主属性PK1、PK2和PK3分别是什么?
2)图 2-2 中应设计哪些实体之间的联系,并说明联系的类型。
【问题3】(8分)
在图2-2中添加实体之间的联系后,该实体联系图是否满足第一范式、第二范式和第三范式中的要求(对于每种范式判定时,假定已满足低级别范式要求)。如果不满足,请用 200 字以内文字分别说明其原因。
正确答案及解析
正确答案
解析
【问题1】
概念设计也称为概念结构设计,其任务是在需求分析阶段产生的需求说明书的基础上,按照特定的方法将它们抽象为一个不依赖于任何DBMS的数据模型,即概念模型。概念模型的表现形式即ER模型。
逻辑设计也称为逻辑结构设计,其主要任务是将概念设计阶段设计好的E-R图转换为与选用的具体机器上的DBMS所支持的数据模型相符合的逻辑结构(如:关系模式)。
物理设计也称为物理结构设计,其任务是对给定的逻辑模型选取一个最适合应用环境的物理结构,所谓数据库的物理结构,主要是指数据库在物理设备上的存储结构和存取方法。
【问题2】
PK1:证件号
PK2:编号
PK3:证件号
联系1:寄件人与快递单之间应有联系,联系类型:1:N。
联系2:收件人与快递单之间应有联系,联系类型:1:N。
【问题3】
寄件人,收件人均满足第3范式,因为这两个关系均消除了部分函数依赖与传递函数依赖。(自然也就同时满足第1范式与第2范式)。
快递单满足第2范式,但不满足第3范式,快递单的主键为编号,编号确定:保价金额、代收货款、运费、加急费、包装费、保价费,而这一系列费用的组合确定总计。所以存在传递函数依赖。注:增加了寄件人证件号与收件人证件号到快递单中,并不会影响快递单满足第2范式。
包含此试题的试卷
你可能感兴趣的试题
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
- 查看答案