- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
资料库基本概念
資料庫基本概念 資料庫基本概念 Dept. of Information Management OCIT February, 2002 Informal design guidelines for relational schemas Informal measures of quality for relation schema design Semantics of the attributes Reducing the redundant values in tuples Reducing the null values in tuples Disallowing spurious tuples Semantics of the relational attributes A certain meaning is associated with the attributes. The easier it is to explain the semantics of the relation, the better will be the relation schema design. Guideline 1: Do not combine attributes from multiple entity types and relationship types into a single relation. Redundant information in tuples and update anomalies Grouping attributes into relation schemas has a significant effect on storage space. Update anomalies Insertion Deletion Modification Guideline 2: No update anomalies occur in the relation. Both schemas suffer from update anomalies Null values in tuples How to account for nulls when aggregate operations such as COUNT or SUM are applied Nulls can have multiple interpretations: Not applying to the tuples Unknown values Known but absent values Guideline 3: Avoid placing attributes with nulls in a base relation. If nulls are unavoidable, make sure that they apply in exceptional cases only 正規化 (Normalization) a process for assigning attributes to entities to reduce data redundancies and to help eliminate the data anomalies. Normalization works through a series of stages called normal forms: First normal form (1NF) Second normal form (2NF) Third normal form (3NF) The highest level of normalization is not always desirable. 正規化 First normal form (1NF) Disallow multivalued and composite attributes. Disallow relations within relations. That is, the domains of attributes must include only atomic values. 第一正規化 (1NF) 1. 必須為row-column的二維式table 2. table的每一筆資料(row)只描述一件事情 3. 每一欄位只含有單一事物的特性(欄位的唯一性) 4. 每一筆row的欄位內只允許存放單一值 5. 每個欄位名稱必須是獨一無二的 6. 沒有任何兩筆資料是相同的 7. row或欄位的先後順予是無關緊要的 第一階正規化 Second normal form (2NF) X ? Y is a f
您可能关注的文档
最近下载
- 江铜产融2025年度社会招聘笔试历年参考题库附带答案详解.docx
- 销售管理(第6版)建立销售渠道.ppt VIP
- 1.2《大数的认识大数的读法与写法》(教学课件)四年级数学上册北京版.pptx
- 2022十八项医疗核心制度之会诊制度培训(精华版).ppt VIP
- 基于BIM的EPC项目管理应用研究.pdf VIP
- 法说西游记(湖南大学)中国大学MOOC慕课章节测验答案(课程ID:1205730816).pdf VIP
- 2024年医师麻精药品处方权暨药师调剂资格考核试题.docx VIP
- 质量管理小组活动推进指南(TCAQ10208-2024).docx
- 飞机防冰排雨系统.ppt VIP
- 深静脉血栓形成的诊断和治疗指南(第三版)解读PPT课件.pptx VIP
文档评论(0)