数据库系统基础教程第四章答案
更新时间:2023-08-20 01:06:01 阅读量: 高等教育 文档下载
.
Solutions
Chapter 4 4.1.1
4.1.2
a)
b)
精品
.
c)
In c we assume that a phone and address can only belong to a single customer (1-m relationship represented by arrow into customer).
精品
.
d)
In d we assume that an address can only belong to one customer and a phone can exist at only one address.
If the multiplicity of above relationships were m-to-n, the entity set becomes weak and the key ssNo of customers will be needed as part of the composite key of the entity set.
In c&d, we convert attributes phones and addresses to entity sets. Since entity sets often become relations in relational design,
we must consider more efficient alternatives.
Instead of querying multiple tables where key values are duplicated, we can also modify attributes:
(i) Phones attribute can be converted into HomePhone, OfficePhone and CellPhone.
(ii) A multivalued attribute such as alias can be kept as an attribute where a single column can be used in relational design i.e. concatenate all values. SQL allows a query "like '%Junius%'" to search the multiple values in a column alias.
精品
.
4.1.3
4.1.4
a)
精品
.
b)
c)
The relationship "played" between Teams and Players is similar to relationship "plays" between Teams and Players.
4.1.5
精品
.
4.1.6 The information about children can be ascertained from motherOf and fatherOf relationships. Attribute ssNo is required since names are not unique.
精品
.
4.1.7
精品
.
精品
.
4.1.8
a)
(b)
精品
.
4.1.9
Assumptions
A Professor only works in at most one department.
A course has at most one TA.
A course is only taught by one professor and offered by one department.
Students and professors have been assigned unique email ids.
A course is uniquely identified by the course no, section no, and semester (e.g. cs157-3 spring
09).
精品
.
4.1.10
Given that for each movie, a unique studio exists that produces the movie. Each star is contracted to at most one studio.
But stars could be unemployed at a given time. Thus the four-way relationship in fig 4.6 can be easily into converted equivalent relationships.
精品
.
4.2.1
Redundancy: The owner address is repeated in AccSets and Addresses entity sets.
Simplicity: AccSets does not serve any useful purpose and the design can be more simply represented by creating many-to-many relationship between Customers and Accounts.
Right kind of element: The entity set Addresses has a single attribute address. A customer cannot have more than one address.
Hence address should be an attribute of entity set Customers.
Faithfulness: Customers cannot be uniquely identified by their names. In real world Customers would have a unique attribute such as ssNo or customerNo
4.2.2
Studios and Presidents can be combined into one entity set Studios with Presidents becoming an attribute of Studios under following circumstances:
1. The Presidents entity set only contains a simple attribute viz. presidentName. Additional attributes specific to Presidents might justify making Presidents into an entity set.
4.2.3
4.2.4 The entity sets should have single attribute.
a) Stars: starName
b) Movies: movieName
c) Studios: studioName. However there exists a many-to-many relationship between Studios and Contracts. Hence, in addition, we need more information about studios involved. If a contract always involves two studios, two attributes such as producingStudio and starStudio can replace the
Studios entity set. If a contact can be associated with at most five studios, it may be possible to replace the Studios entity set by five attributes viz. studio1, studio2, studio3, studio4, and studio5. Alternately, a composite attribute containing concatenation of all studio names in a contact can be considered. A separator character such as "$" can be used. SQL allows searching of such an attribute using query like '%keyword%'
精品
.
4.2.5
From Augmentation rule of Functional Dependency,
given
B -> M (B=Baby, M=Mother)
then
BND -> M (N=Nurse, D=Doctor)
Hence we can just put an arrow entering mother.
a) Put an arrow entering entity set Mothers for the simplest solution (As in fig. 4.4, where a multi-way relationship was allowed, even though Movies alone could identify the Studio). However, we can display more accurate information with below figure.
精品
. b)
精品
.
c)
Again from Augmentation rule of Functional Dependency,
given
BM -> D
then
BMN -> D
Thus we can just add an arrow entering Doctors to fig 4.15. Below figure represents more accurate information however.
4.2.6
a)
精品
.
b) Transitivity and Augmentation rules of Functional Dependency allow arrow entering Mothers from Births. However, a new relationship in below figure represents more accurate information.
c)
精品
正在阅读:
数据库系统基础教程第四章答案08-20
一般合同权利和义务03-29
对照张建同志结合自己工作经历反思02-22
煤矿水害隐蔽致灾因素普查报告 - 图文01-18
计算机选择题03-17
金融英语学习资料76 中英文对照08-20
汽车经营模式的探索与分析06-04
- 2012诗歌鉴赏讲座 师大附中张海波
- 2012-2013学年江苏省苏州市五市三区高三(上)期中数学模拟试卷(一)
- 市政基础设施工程竣工验收资料
- 小方坯连铸机专用超越离合器(引锭杆存放用)
- 荀子的学术性质之我见
- 氩弧焊管轧纹生产线操作说明
- 小学科学六年级上册教案
- (商务)英语专业大全
- 外汇储备的快速增长对我国经济发展的影响
- 幼儿园中班优秀语言教案《小猴的出租车》
- 第七章 仪表与显示系统
- 身份证号码前6位行政区划与籍贯对应表
- 单位(子单位)工程验收通知书
- 浅谈地铁工程施工的项目成本管理
- 沉积学知识点整理
- 前期物业管理中物业服务企业的法律地位
- 2014微量养分营养试卷
- 地质专业校内实习报告范文(通用版)
- 内部审计视角下我国高校教育经费支出绩效审计研究
- 高次插值龙格现象并作图数值分析实验1
- 第四章
- 答案
- 数据库
- 基础
- 教程
- 系统
- 英语教学法作业
- 酒店客户管理系统
- 2013年河北省中考文综思想品德第24题试题分析
- 毕业设计论文(借鉴)
- 工资表及打印工资条表模版
- 中石油炼化设备分类及编码炼油化工
- 技术指标第五讲:布林通道的应用
- unit5 creating a caribbean spring festival
- 陈古资:1.9美指与美股齐飞,金银携铜油非农
- 安全心理学在煤矿生产中的应用分析
- 无卤无磷高性能覆铜板的开发
- 高等土力学课后思考题
- 风险控制部岗位职责
- 哈工大版线性代数与空间解析几何课后题答案
- 公务员考试排列组合专题
- 《预防未成年人犯罪法》宣传材料一
- 土壤成分近红外光谱检测的重点和难点
- 商业计划书 Microsoft Word 文档 (5)
- 《人体的激素调节》教案
- Code Coverage by Integration Tests for Java Project - Plugins - SonarQube