数据库系统基础教程第四章答案
更新时间:2023-07-22 16:46: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)
精品
正在阅读:
数据库系统基础教程第四章答案07-22
2022年佳木斯大学生命科学学院706普通生物学考研强化模拟题04-13
非洲有什么事是大多数人不知道的汐慕05-14
投资性房地产06-29
17.晶粒大小的控制05-10
房地产营销实战讲师 - 朱晓波04-13
夸奖学生的评语01-12
抽采系统及瓦斯输送安全措施04-28
怎样科学的种植核桃树04-14
会计实务之建账大全04-04
- 教学能力大赛决赛获奖-教学实施报告-(完整图文版)
- 互联网+数据中心行业分析报告
- 2017上海杨浦区高三一模数学试题及答案
- 招商部差旅接待管理制度(4-25)
- 学生游玩安全注意事项
- 学生信息管理系统(文档模板供参考)
- 叉车门架有限元分析及系统设计
- 2014帮助残疾人志愿者服务情况记录
- 叶绿体中色素的提取和分离实验
- 中国食物成分表2020年最新权威完整改进版
- 推动国土资源领域生态文明建设
- 给水管道冲洗和消毒记录
- 计算机软件专业自我评价
- 高中数学必修1-5知识点归纳
- 2018-2022年中国第五代移动通信技术(5G)产业深度分析及发展前景研究报告发展趋势(目录)
- 生产车间巡查制度
- 2018版中国光热发电行业深度研究报告目录
- (通用)2019年中考数学总复习 第一章 第四节 数的开方与二次根式课件
- 2017_2018学年高中语文第二单元第4课说数课件粤教版
- 上市新药Lumateperone(卢美哌隆)合成检索总结报告
- 第四章
- 答案
- 数据库
- 基础
- 教程
- 系统
- B证安全员证考核试卷(第二卷)
- 合伙协议书(有限合伙企业)
- 2014 年中央财政支持社会组织参与社会服务项目手册
- 涵洞通道施工技术交底
- 无卤无磷高性能覆铜板的开发
- 双膝关节剥脱性骨软骨炎1例
- 北辅运大巷掘进作业规程
- 九大主流早教机构特色分析汇总
- 学前班幼儿必学500字
- CFX13_03_计算域及边界条件设置
- 起重机司机(限桥式起重机)模拟考试
- ICL7107构成的数字电压表电路的应用
- 中小学音乐教师钢琴即兴伴奏存在问题的分析与提高途径
- 锚杆挡土墙工程施工组织设计方案
- 少儿英语培训学校岗位职责及工资标准
- 北岩银行挤兑危机对我国银行业信贷高速增长的启示_梁荣松
- 酒店客户管理系统
- 商务、综合标评分表(含公式)
- 青龙小学教师师德建设考核量化评分细则
- 2011最新版教师资格考试教学方法导论复习知识点