题目详情

M公司为某宾馆设计宾馆机票预订系统,初步的需求分析结果如下:

(1)客户可以在提前预订或直接入住时向宾馆提供相关信息, 宾馆登记的客户信息包括:客户编号,姓名,性别,类型,身份证号,联系方式,预订日期,入住时间和离开时间等信息。其中类型字段说明客户是普通客户或 VIP 客户,不同的客户类型享受订票的折扣额度不同。直接入住的客户其预订日期取空值。

(2)需要预订机票的客户应填写“机票预订”表,提供飞行日期、航班号、出发时间、目的地等信息。宾馆根据客户订票信息购票后,生成“客户订单”表,并根据客户类型确定相应的折扣额度。“机票预订”和“客户订单”表如表1-1、1-2所示。

中级数据库系统工程师,历年真题,2009年上半年《数据库系统工程师》案例分析真题

中级数据库系统工程师,历年真题,2009年上半年《数据库系统工程师》案例分析真题

【逻辑结构设计】

根据需求阶段收集的信息,设计的关系模式如图1-1所示。

中级数据库系统工程师,历年真题,2009年上半年《数据库系统工程师》案例分析真题

关系模式的主要属性、含义及约束如表1-3所示。

中级数据库系统工程师,历年真题,2009年上半年《数据库系统工程师》案例分析真题

【问题1】(6分)

对关系“客户”,请回答以下的问题:

(1)若选定(客户编号, 预订日期)作主码,未预订而直接入住的客户信息能否录入客户表?如不能,请说明原因。

(2)对“客户”关系增加一个流水号属性作为主码,“客户”关系属于第几范式?还存在哪些问题?

(3)将增加入住标识属性后的“客户”关系分解为第三范式,分解后的关系名依次取客户1、客户2、…。

【问题2】(6分)

对关系“航班”,请回答以下问题:

(1)列举出“航班”关系中所有不属于任何候选码的属性(非码属性)。

(2)该关系模式可达到第几范式?用不超过60个字的内容叙述理由。

【问题3】(3 分)

对于没有预订客房或入住宾馆的客户,需要在(a)关系中修改其(b)属性的值域,以满足这类客户在宾馆预订机票的需求。

正确答案及解析

正确答案
解析

中级数据库系统工程师,历年真题,2009年上半年《数据库系统工程师》案例分析真题

包含此试题的试卷

你可能感兴趣的试题

单选题

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
查看答案

相关题库更多 +