- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2_RDBMSintro CH2
Foreign Key (3) Foreign keys need to be explicitly defined. R1 and R2 in the definition could be the same relation, for eg. Employees(ID, Age, Salary, Position, Manager_ID). The primary key in the definition may be replaced by a candidate key. Foreign Key (4) Rule 4 (Referential Integrity Rule). No relation is allowed to contain unmatched foreign key values. Using a foreign key of a relation to reference the (primary) key of another relation is THE WAY used by the relational data model to establish relationships among different relations. Drpengxg@126.com * Drpengxg@126.com * Drpengxg@126.com * * 数据库原理与实践 Database Systems- Principle and Practice CHAPTER 2: THE RELATIONAL DATA MODEL CHAPTER 2: THE RELATIONAL DATA MODEL Definition: A data model is a tool that can be used to specify (describe) the real-world objects (entities), relationships among them, constraints on them, and the manipulation of them. Terminologies of a Relation Students SID Name Age GPA 123456789 Liu 20 3.2 Ma 18 2.9 345678912 Tan 19 2.7 Relation name Attributes head Records (tuples,rows) columns Schema An attribute corresponds to a column heading. the schema of the relation is a description the structure of the table. Head (Students) = (SID, Name, Age, GPA) Students(SID, Name, Age, GPA) Schema and State Two aspects of a relation: Schema --- the set of attributes of R. State (or contents) --- the CURRENT set of tuples of R . Schema and State Once the schema of a relation is decided, it will be very costly to change Some possible changes are: delete an attribute insert an attribute rename an attribute delete the schema Schema and State Whereas the state of a relation changes frequently in most relations. Some possible changes are: update some attribute values Insert a new tuple Delete an existing tuple A given schema may have different states at different times. Characteristics of a Relation 1 1.Changing the
您可能关注的文档
- )housing standard.doc
- --机械零件有限元分析--4--第三讲--实体模型的建立.ppt
- 04_Workshop02_Expressions.ppt
- 05.polygon.ppt
- 076TGp_Global_blue_v2.ppt
- 08 Entering Foreign Market.ppt
- 11_public_goods.ppt
- 2 foreign language teaching research.ppt
- 161225-Presentation-Bhavya-BY张江中区地块.pptx
- 2-轻松玩转惠普TouchPad,手动安装第三方软件方法教程!.doc
- 2BUnit_4_In_the_park.ppt
- 3.1Redrock Bay Health Club.ppt
- 3.2 IITSIBasic CBF Pproject treeV0220070321.ppt
- 4-财管评估(作二之三)-FAIR SOME-96.doc
- 4册英语集体备课教案设计1.doc
- 4B Unit3课件(牛津小学英语课件).ppt
- 5 Chapter 5 Syntax---main campus.ppt
- 5 Continuing Medical Education Challenges & Opportunities.ppt
- 5B Unit 9 English club第一课时.ppt
- 5B Unit9 The English club.ppt.ppt
文档评论(0)