- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
How to translate ER Model to Relational Model.ppt
How to translate ER Model to Relational Model By: Jung T. Chang CS 157A T/Th Morning Section Review - Concepts Relational Model is made up of tables A row of table = a relational instance/tuple A column of table = an attribute A table = a schema/relation Cardinality = number of rows Degree = number of columns Review - Example From ER Model to Relational Model So… how do we convert an ER diagram into a table?? Simple!! Basic Ideas: Build a table for each entity set Build a table for each relationship set if necessary (more on this later) Make a column in the table for each attribute in the entity set Indivisibility Rule and Ordering Rule Primary Key Example – Strong Entity Set Representation of Weak Entity Set Weak Entity Set Cannot exists alone To build a table/schema for weak entity set Construct a table with one column for each attribute in the weak entity set Remember to include discriminator Augment one extra column on the right side of the table, put in there the primary key of the Strong Entity Set (the entity set that the weak entity set is depending on) Primary Key of the weak entity set = Discriminator + foreign key Example – Weak Entity Set Representation of Relationship Set --This is a little more complicated-- Unary/Binary Relationship set Depends on the cardinality and participation of the relationship Two possible approaches N-ary (multiple) Relationship set Primary Key Issue Identifying Relationship No relational model representation necessary Representing Relationship SetUnary/Binary Relationship For one-to-one relationship w/out total participation Build a table with two columns, one column for each participating entity set’s primary key. Add successive columns, one for each descriptive attributes of the relationship set (if any). For one-to-one relationship with one entity set having total participation Augment one extra column on the right side of the table of the entity set with tota
您可能关注的文档
- 2007年12月18日台北医学院公卫系-How The Eye Works.ppt
- 2010年压轴题专题讲座 海南省中考二次函数问题技术命题探究.ppt
- 2012 Crop Budgets Corn, Soybeans, Wheat .ppt
- 2014年国家公务员考试讲座——资料分析.ppt
- 3.4 Quadratic Variation.ppt
- 40 GHz MMIC Power Amplifier in InP DHBT Technology.ppt
- 53071 Hydraulics and HydrologyProject #1Pelton Turbine.ppt
- 6.3二叉树的遍历.ppt
- 911 services wireline, wireless and VoIP.ppt
- A 2nd Opinion on CaRFG3T50 & Supply.ppt
文档评论(0)