- 1、本文档共33页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
RelationalDatabaseDesignbyER-andEER-to-RelationalMapping.ppt
Chapter 7 Relational Database Design by ER- and EER-to-Relational Mapping Chapter Outline ER-to-Relational Mapping Algorithm Step 1: Mapping of Regular Entity Types Step 2: Mapping of Weak Entity Types Step 3: Mapping of Binary 1:1 Relation Types Step 4: Mapping of Binary 1:N Relationship Types. Step 5: Mapping of Binary M:N Relationship Types. Step 6: Mapping of Multivalued attributes. Step 7: Mapping of N-ary Relationship Types. Mapping EER Model Constructs to Relations Step 8: Options for Mapping Specialization or Generalization. Step 9: Mapping of Union Types (Categories). ER-to-Relational Mapping Algorithm Step 1: Mapping of Regular Entity Types For each regular (strong) entity type E in the ER schema, create a relation R that includes all the simple attributes of E. Choose one of the key attributes of E as the primary key for R. If the chosen key of E is composite, the set of simple attributes that form it will together form the primary key of R. Example: We create the relations EMPLOYEE, DEPARTMENT, and PROJECT in the relational schema corresponding to the regular entities in the ER diagram. SSN, DNUMBER, and PNUMBER are the primary keys for the relations EMPLOYEE, DEPARTMENT, and PROJECT as shown. FIGURE 7.1The ER conceptual schema diagram for the COMPANY database. FIGURE 7.2Result of mapping the COMPANY ER schema into a relational schema. ER-to-Relational Mapping Algorithm (cont.) Step 2: Mapping of Weak Entity Types For each weak entity type W in the ER schema with owner entity type E, create a relation R include all simple attributes (or simple components of composite attributes) of W as attributes of R. Also, include as foreign key attributes of R the primary key attribute(s) of the relation(s) that correspond to the owner entity type(s). The primary key of R is the combination of the primary key(s) of the owner(s) and the partial key of the weak entity type W, if any. Example: Create the relation DEPENDENT in this step to correspond to the weak e
您可能关注的文档
最近下载
- 整本书阅读《中国古代寓言 》(导读课 推进课分享课)教学设计.doc
- 火电机组启动调试管理办法.doc
- 3.5.2 C-2.1医院感染监测计划.docx
- 2024年河南省中考作文真题:我的成功密码(青春追梦、拼搏坚持、心灵成长)佳作5篇.docx
- 锂电池火灾事故专项应急预案.pptx
- 2024人美版美术小学一年级上册期末练习卷及参考答案.docx VIP
- 鞍山市东台污水处理厂工程投资建设可研报告.doc VIP
- SHS 01037-2019 球形储罐维护检修规程.docx VIP
- 手术室利用PDCA循环提高患者手术室健康教育知晓率品管圈.pptx
- BSSlondonBLU产品详细说明资料.ppt
文档评论(0)