- 1、本文档共64页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ch2 E-R模型
Chapter 2: Entity-Relationship Model第二章:实体-联系模型 Entity Sets实体集 Relationship Sets联系集 Design Issues 模型设计 Mapping Constraints 映射约束 Keys码 E-R图E-R Diagram Extended E-R Features扩展E-R功能 E-R数据库模式的设计Design of an E-R Database Schema E-R模式转换成表时的缩减Reduction of an E-R Schema to Tables Entity Sets实体集 A database can be modeled as:数据库可由下列内容模型化 a collection of entities,实体集合 relationship among entities.实体间的关系 An entity is an object that exists and is distinguishable from other objects.实体是现关存在的、可与其他对象相区别的对象 Example: specific person, company, event, plant例如:指定的人、公司、事件、工厂 实体有属性Entities have attributes Example: people have names and addresses例如:人有姓名和地址 An entity set is a set of entities of the same type that share the same properties.实体集是拥有相同特性的同类型实体的集合 Example: set of all persons, companies, trees, holidays例如所有人、公司、树、节假日的集合, Entity Sets customer and loan实体集:客户和贷款 Attributes属性 An entity is represented by a set of attributes, that is descriptive properties possessed by all members of an entity set.实体由属性集表示,该集合描述了实体集中所有成员所拥有的特性 Example:例如 customer = (customer-id, customer-name, customer-street, customer-city)客户=(客户号,客户名,客户所在街道,客户所在城市) loan = (loan-number, amount)贷款=(贷款号,贷款金额) Domain – the set of permitted values for each attribute 域——每个属性取值范围 Attribute types:属性类型 Simple and composite attributes.单个和组合属性 Single-valued and multi-valued attributes单值和多值属性 E.g. multivalued attribute: phone-numbers例:多值属性:电话号码 Derived attributes派生属性 Can be computed from other attributes由其他属性计算而得 E.g. age, given date of birth例如“年龄”可以得出“出生年份” Composite Attributes组合属性 Relationship Sets关系集 A relationship is an association among several entities关系是若干实体间的关联Example:例如 Hayes depositor A-102 customer entity relationship set account entity 贺氏(客户实体) 储户(关系集) A-102(帐目实体) A relationship set is a mathematical relation among n ? 2 entities, each taken from entity sets关系集是两个以上实体间的数学关系(所有实体来取自实体集) {(e1, e2, … en) | e1 ? E1, e2 ? E2, …, en ? En}where (e1, e2, …, en) is a relationshi
您可能关注的文档
- 压缩卡及硬盘录像机常见故障集锦上.doc
- TUBEMICPRE电子管话放线路.doc
- The 10th China (Beijing) International Steel Tube Industry Expo 2013 钢管.doc
- 斯蒂卡管王 系列.docx
- ER图设计.docx
- win8 wifi (无线)连接受限问题.docx
- 约翰逊管.doc
- AC-AUDIO TUBE G52 pro 双通道电子管话放.docx
- AC-AUDIO TUBE G32 双通道电子管话放.docx
- 管道和socket编程.docx
- 《JJF 2132-2024荧光紫外灯人工气候老化试验装置校准规范:辐射照度参数》.pdf
- JJF 2120-2024轮速传感器校准规范.pdf
- 计量规程规范 JJF 2120-2024轮速传感器校准规范.pdf
- 《JJF 2129-2024钙钛矿太阳电池校准规范:光电性能参数》.pdf
- JJF 2129-2024钙钛矿太阳电池校准规范:光电性能参数.pdf
- 《JJF 2120-2024轮速传感器校准规范》.pdf
- JJF 2117-2024沥青混合料理论最大相对密度仪校准规范.pdf
- JJF 2116-2024特定蛋白分析仪校准规范.pdf
- 《JJF 2116-2024特定蛋白分析仪校准规范》.pdf
- 计量规程规范 JJF 2117-2024沥青混合料理论最大相对密度仪校准规范.pdf
文档评论(0)