Week 4September 19.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Week 4September 19.ppt

Week 4 September 19 Relational Data Model Views Relational Model Objectives A degree of data independence Address data semantic, consistency and redundancy problems Set-oriented data manipulation language Structured Query Language (SQL) Domain of an Attribute Set of allowable values for one or more attributes Properties of Relations Distinct (i.e., unique) relation name Each cell contains exactly one atomic (single) value No repeating groups Distinct attribute name The values of an attribute come from the same domain Order of attributes has no significance Each tuple is distinct (i.e., unique) No duplicate tuples Order of tuples has no significance Unique Identification of a Relation Identifying a Tuple Superkey An attribute or a set of attributes that uniquely identifies a tuple within a relation Candidate key A super key such that no proper subset is a superkey within the relation Uniquely identifies the tuple (uniqueness) Contains no unique subset (irreducibility) Primary key The candidate key that is selected to identify tuples uniquely within a relation Should remain constant over the life of the tuple Most efficient way of identifying a tuple Finding the Primary Key Keys Selecting a Key Criteria An efficient way of identifying an entity The attribute (value) remains constant over the life of the entity Never changes Identifying a Tuple Foreign key An attribute or set of attributes within one relation that matches the candidate key of some (possibly the same) relation Foreign Key Relational Integrity Constraints placed on the set of values allowed for the attributes of a relation. Entity integrity No attribute of a primary key can be null (every tuple must be uniquely identified) Referential integrity If a foreign key exists in a relation, either the foreign key value must match a candidate key value of some tuple in its home relation, or the foreign key value must be wholly null (i.e., no key exists in the home relation) General constraints (reflect bus

文档评论(0)

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

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

1亿VIP精品文档

相关文档