Normalization
为什么规范化(Purpose
规范化是一种用于生成一组支持企业数据需求的合适关系的技术。
(把大表格拆解成易于辨识的小表格)
合适关系suitable set of relations
支持企业数据需求的最小属性数量the minimal number of attributes necessary to support the data requirements of the enterprise
同一关系中可以找到具有密切逻辑关系的属性attributes with a close logical relationship are found in the same relation;
每个属性的最小冗余只表示一次(构成全部或部分外键的属性除外minimal redundancy with each attribute represented only once with the important exception of attributes that form all or part of foreign keys.
优点:用户更容易访问和维护数据;在计算机上占用最小的存储空间
数据冗余和异常更新Data Redundancy and Update Anomalies
关系数据库设计的一个主要目标是将属性分组为关系,以最小化数据冗余。One major aim of relational database design is to group attributes into relations to minimize data redundancy
冗余:细节重复
包含冗余的关系可能存在异常更新的问题:
Insertion anomalies插入异常
Deletion anomalies删除异常
Modification anomalies修改异常
Functional Dependencies
表示Attributes之间的关系(A决定B)
A functional determined B/