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/
规范化是关系数据库设计的关键步骤,旨在最小化数据冗余并确保数据的一致性。通过拆分大表为逻辑相关的小表,可以避免插入、删除和修改异常,提高用户访问和维护数据的效率,并节省存储空间。主要目标是创建合适的关系,使每个属性仅表示一次(外键除外)。数据冗余可能导致更新异常,规范化则有助于消除这些问题。

1578

被折叠的 条评论
为什么被折叠?



