- 1、本文档共5页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2008年DB-EXAM(12-24)
华南农业大学期末考试试卷(A卷)
2008-2009 学年第一学期 考试科目: 数据库系统
考试类型:(闭卷) 考试时间: 120 分钟
学号 姓名 年级专业
题号 一 二 三 四 五 六 七 总分 得分 评阅人 _____________________________________________________________________________
Instructions to candidates:
1. This paper consists of 7 questions.
2. Answer all questions on the answer sheets.
3. Hand in the answer sheets, and this paper can be taken away.
Question 1: (25 points) Define the following terms. Each term is worth 2.5 marks.
a. Data dictionary
b. View
c. Data independence
d. Data model
e. Foreign key
f. Trigger
g. Functional dependence
h. Consistency
i. Transactions
j. Log
Question 2: (18 marks) An Internet store sends emails to customers and would like to use a database to keep track of which messages are sent to which customers. A message has a message id (mId), a subject (subject), and a body (body). A customer is identified by the email address (email), and customer’s data includes the attributes name, sex, householdSize, and address. When an email is sent, the date (sendDate) is recorded. You can assume any reasonable domains for these attributes.
a. Give an E-R diagram that completely describes the entities and relationships of this plan. [6 marks]
b. Translate the E-R diagram into SQL tables using SQL DDL, by specifying a table for messages, a table for customers, and a table for which messages are sent to which customers,in SQL DDL. [6 marks]
c. How to specify that the subject of a message must not be longer than 60 characters, in SQL? [1 marks]
d. How to require that customers at the same address all have different names, in SQL? [1 marks]
e How to enforce the restriction that the only valid values of sex are male or female, in SQL?
您可能关注的文档
- “下压式”交接棒说课稿.ppt
- “团支部风采秀”活动简介.doc
- “三零社区”申报材料.doc
- “临边、洞口”防护方案.doc
- “师生同志愿”活动计划书.doc
- “我身边的共产党员”演讲比赛主持词.doc
- “教学反思”的反思-.doc
- “教学质量月”活动方案.doc
- “排查防控廉政风险点”活动情况的总结报告.doc
- “假山飞瀑”工程的施工.doc
- 2.2.1风蚀地貌公开课教案教学设计课件资料.pptx
- 15教学阅读公开课教案教学设计课件资料.doc
- 17十七、DNA的半保留复制公开课教案教学设计课件资料.pptx
- 考点38 自然保护区建设与生态安全公开课教案教学设计课件资料.doc
- 3科学试卷公开课教案教学设计课件资料.doc
- 光现象公开课教案教学设计课件资料.docx
- 第一部分 第七章 课时43 地质灾害公开课教案教学设计课件资料.docx
- 核心素养综合练3 区域认知公开课教案教学设计课件资料.doc
- 4.4国际合作教学设计2023-2024学年人教版(2019)高中地理选择性必修2公开课教案教学设计.docx
- 2.1.3滑坡、泥石流课件公开课教案教学设计课件资料.pptx
文档评论(0)