- 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
您可能关注的文档
- Oracle_11g服务器配置与管理(详细正确版------自测).docx
- oracle、sql性能优化.doc
- oracle数据库_实例_用户_表空间之间关系.doc
- oracle数据库中分页SQL语句.doc
- Origin二维做图进阶和简单三维做图.docx
- OSI七层模型称为开放式系统互联参考模型OSI七层模型是一种框架性设计方法.doc
- OT6010-SS中文说明书-内容(S1.0).doc
- OV100-CN系统概述(FDDICDDI网).ppt
- P020060911397734065638.ppt
- p2p和供应链结合案例.doc
- 六年级语文下册课件《他们那时候多有趣啊》.pptx
- 六年级语文下册课件《表里的生物》.pptx
- 六年级语文下册课件《习作:写作品梗概》.pptx
- 六年级语文下册课件《交流平台 初试身手 习作例文》.pptx
- 第六课 掌握演绎推理方法 课件-高考政治一轮复习统编版选择性必修三逻辑与思维.pptx
- 六年级语文下册课件《藏戏》.pptx
- 6.4 现代生物技术 课件 2024-2025学年冀少版生物八年级下册.pptx
- 年终总结和工作规划写作金句50例.docx
- 对2023年山东等级考历史试卷19题若干问题的思考.pptx
- 第一课 走进思维世界课件-高考政治一轮复习统编版选择性必修三逻辑与思维.pptx
最近下载
- 《孤独症儿童行为管理策略及行为治疗课程》随笔.docx VIP
- (高清版)B 20400-2006 皮革和毛皮 有害物质限量.pdf VIP
- 中信银行个人贷款合同格式8篇.docx
- “党支部”双带头人教师党支部书记工作室.docx VIP
- 2023年五年级上学期数学竞赛试题及答案.pdf
- (正式版)JC-T 60022-2024 陶粒窑协同处置固体废物技术规范.pdf VIP
- 持续改进报告实例.xls
- DB44_T 1586-2015 超声诊断设备的声输出检测方法规范(广东省).pdf
- 传统二十四节气冬至节气习俗介绍PPT.pptx VIP
- 【部编版】四年级语文上册:《第八单元单元统整备课》word版教案.doc VIP
文档评论(0)