2008年DB-EXAM(12-24).doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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?

文档评论(0)

cgtk187 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档