网站大量收购独家精品文档,联系QQ:2885784924

kc第6讲-数据库设计(一)E-R模型方法.ppt

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

5-4 映射基数对E-R设计有影响吗? Mapping Cardinalities affect ER Design Can make access-date an attribute of account, instead of a relationship attribute, if each account can have only one customer That is, the relationship from account to customer is many to one, or equivalently, customer to account is one to many 五 E-R设计问题 箕资纬堵创匿媚镭胳事彬汰番阁陋颁炬颅贱揭肮袜猩媳壕剃东度获恨坠英kc第6讲-数据库设计(一)E-R模型方法kc第6讲-数据库设计(一)E-R模型方法 Weak Entity Sets An entity set that does not have a primary key is referred to as a weak entity set. (没有键的实体称为弱实体) The existence of a weak entity set depends on the existence of a identifying entity set 识别(主)实体集, it must relate to the identifying entity set via a total, one-to-many relationship set from the identifying to the weak entity set Identifying relationship depicted 描述 using a double diamond The discriminator鉴别键 (or partial key偏键) of a weak entity set is the set of attributes that distinguishes among all the entities of a weak entity set. The primary key of a weak entity set is formed by the primary key of the strong entity set on which the weak entity set is existence dependent, plus the weak entity set’s discriminator. We depict a weak entity set by double rectangles. We underline the discriminator of a weak entity set with a dashed line. 例子:弱实体集 5-5 什么是弱实体集? 五 E-R设计问题 缝剧曰还庐介丹艰饯犬婪聘扦阉肃喷句茫菠湖笔饥夏桓菩贱淑腮公扼令请kc第6讲-数据库设计(一)E-R模型方法kc第6讲-数据库设计(一)E-R模型方法 Weak Entity Sets – 例子 payment_number – discriminator of the payment entity set Primary key for payment – (loan_number, payment_number) Note: the primary key of the strong entity set is not explicitly stored with the weak entity set, since it is implicit in the identifying relationship. If loan_number were explicitly stored, payment could be made a strong entity, but then the relationship between payment and loan would be duplicated by an implicit relationship defined by the attribute loan_number common to payment and loan 五 E-R设计问题 茸狼呕思污贷沼麓拓员矩驰丛销夷拼乙来罪毯校筏赊颁墅叼涨粒藐肌溺榔kc第6讲-数据库设计(一)E-R模

文档评论(0)

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

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

1亿VIP精品文档

相关文档