- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
PAGE 42
PAGE
习题
[12分] 用英文解释
DBMS 2、Data Dictionary 3、Transa
ction
[10分]
二、单项选择题
1.There may be instances where an attribute has a set of values for a specific entity. This type of attribute is said to be 【】
A.single valued attribute B.multivalued attribute
C.simple attribute D.composite attribute
2.In a particular bank, a loan can belong to only one customer, and a customer can have several loans, then the relationship set from customer to loan is【】
A.one to many B.many to many C.many to one D.one to one
3.A【】contains metadata─ that is, data about data.
A.table B.view C.data dictionary D.trigger
4.The phrase “greater than at least one” is represented in SQL by【】
A.all B.all C.some D.some
5.In general, all aggregate functions except 【】ignore null values in their input collection.
A.sum B.avg C.min D.count
6.If a schedule S can be transformed into a schedule S’ by a series of swaps of non-conflicting instructions, we say that S and S’ are【】
A.non-conflicting equivalent B.conflict equivalent
C.non-conflicting serializable D.conflict serializable
7.The fundamental operations in the relational algebra are【】。A.∪,-,×,π和σ B.∪,-,∞,π和σC.∪,∩,×,π和σ D.∪,∩,∞,π和σ
8.In SQL, =some is identical to in, and【】is identical to not in。A.some??B.=all C.all???D.=some
9.The result of true and null is【】。
A.null B.true C.false D.not null
10.The function sum applied on the collection {1,1,3,4,4,11} returns the value【】.
A.24???B.6 C.4?????D.11
[10分] 设有Course(课程)、Teacher(教师)、Student(研究生),其中:
Course有属性cno(课程号)、cname(课程名)和mark(学分);
Teacher有属性tno(教师编号)、tname(教师姓名)和major(专业属性);
Student有属性sno(学号)、sname(学生姓名)、age(年龄)、 bno(班级号)、score(总成绩)属性。
Teacher与Student之间有指导论文的联系,用Supervise表示,每位教师可指导多名研究生,每名研究生有且只能有一位指导教师;
Teacher与Course之间有讲授的联系,用Teach表示,每位教师可以教授多门课程,每门课程可同时由多位教师开设。
试画出E-R图。
[12分] 题设与第三题相同,试根据你所画的E-R图,设计出关系数据库,并指出每个关系中的主键和外键。
[8分] 题设与第三题相同,试用关系代数表达:
1.检索编号为’t01’的老师的姓名
2.检索班级号为’b01’或者年龄大于21岁所有学生的姓名
[12分]题设与第三题相同。使用SQL表达:
1.建立表结构Course(课程)、Teac
文档评论(0)