数据库系统概论第七章数据库设计(续1)课件.ppt
《数据库系统概论第七章数据库设计(续1)课件.ppt》由会员分享,可在线阅读,更多相关《数据库系统概论第七章数据库设计(续1)课件.ppt(76页珍藏版)》请在三一办公上搜索。
1、An Introduction to Database System,数据库系统概论An Introduction to Database System第七章 数据库设计(续1),An Introduction to Database Sy,An Introduction to Database System,第七章 数据库设计,7.1 数据库设计概述7.2 需求分析7.3 概念结构设计7.4 逻辑结构设计7.5 数据库的物理设计7.6 数据库实施和维护7.7 小结,An Introduction to Database Sy,An Introduction to Database Syste
2、m,7.3 概念结构设计,7.3.1 概念结构7.3.2 概念结构设计的方法与步骤7.3.3 数据抽象与局部视图设计7.3.4 视图的集成,An Introduction to Database Sy,An Introduction to Database System,7.3.1 概念结构,什么是概念结构设计将需求分析得到的用户需求抽象为信息结构即概念模型的过程就是概念结构设计概念结构是各种数据模型的共同基础,它比数据模型更独立于机器、更抽象,从而更加稳定概念结构设计是整个数据库设计的关键,An Introduction to Database Sy,An Introduction to D
3、atabase System,概念结构(续),An Introduction to Database Sy,An Introduction to Database System,概念结构(续),概念结构设计的特点(1)能真实、充分地反映现实世界(2)易于理解(3)易于更改(4)易于向关系、网状、层次等各种数据模型转换,An Introduction to Database Sy,An Introduction to Database System,概念结构(续),描述概念模型的工具E-R模型,An Introduction to Database Sy,An Introduction to D
4、atabase System,7.3 概念结构设计,7.3.1 概念结构7.3.2 概念结构设计的方法与步骤7.3.3 数据抽象与局部视图设计7.3.4 视图的集成,An Introduction to Database Sy,An Introduction to Database System,7.3.2 概念结构设计的方法与步骤,设计概念结构的四类方法自顶向下 首先定义全局概念结构的框架,然后逐步细化,自顶向下策略,An Introduction to Database Sy,An Introduction to Database System,7.3.2 概念结构设计的方法与步骤,自底向
5、上 首先定义各局部应用的概念结构,然后将它们集成起来,得到全局概念结构,自底向上策略,An Introduction to Database Sy,An Introduction to Database System,概念结构设计的方法与步骤(续),逐步扩张 首先定义最重要的核心概念结构,然后向外扩充,以滚雪球的方式逐步生成其他概念结构,直至总体概念结构,逐步扩张策略,An Introduction to Database Sy,An Introduction to Database System,概念结构设计的方法与步骤(续),混合策略 将自顶向下和自底向上相结合,用自顶向下策略设计一个全局
6、概念结构的框架,以它为骨架集成由自底向上策略中设计的各局部概念结构。,An Introduction to Database Sy,An Introduction to Database System,概念结构设计的方法与步骤(续),常用策略自顶向下地进行需求分析自底向上地设计概念结构,An Introduction to Database Sy,An Introduction to Database System,概念结构设计的方法与步骤(续),自底向上设计概念结构的步骤 第1步:抽象数据并设计局部视图第2步:集成局部视图,得到全局概念结构,An Introduction to Databa
7、se Sy,An Introduction to Database System,7.3 概念结构设计,7.3.1 概念结构7.3.2 概念结构设计的方法与步骤7.3.3 数据抽象与局部视图设计7.3.4 视图的集成,An Introduction to Database Sy,An Introduction to Database System,7.3.3 数据抽象与局部视图设计,数据抽象局部视图设计,An Introduction to Database Sy,An Introduction to Database System,数据抽象,抽象是对实际的人、物、事和概念中抽取所关心的共同特
8、性,忽略非本质的细节,并把这些特性用各种概念精确地加以描述。概念结构是对现实世界的一种抽象,An Introduction to Database Sy,An Introduction to Database System,数据抽象(续),三种常用抽象1.分类(Classification)定义某一类概念作为现实世界中一组对象的类型抽象了对象值和型之间的“is member of”的语义,An Introduction to Database Sy,An Introduction to Database System,数据抽象(续),An Introduction to Database Sy
9、,An Introduction to Database System,数据抽象(续),2.聚集(Aggregation)定义某一类型的组成成分抽象了对象内部类型和成分之间“is part of”的语义,An Introduction to Database Sy,An Introduction to Database System,数据抽象(续),聚集,An Introduction to Database Sy,An Introduction to Database System,数据抽象(续),复杂的聚集,某一类型的成分仍是一个聚集,更复杂的聚集,An Introduction to D
10、atabase Sy,An Introduction to Database System,数据抽象(续),3.概括(Generalization)定义类型之间的一种子集联系抽象了类型之间的“is subset of”的语义继承性,An Introduction to Database Sy,An Introduction to Database System,数据抽象(续),概括,An Introduction to Database Sy,An Introduction to Database System,局部视图设计,设计分E-R图的步骤:选择局部应用逐一设计分E-R图,An Intr
11、oduction to Database Sy,An Introduction to Database System,选择局部应用,在多层的数据流图中选择一个适当层次的数据流图,作为设计分E-R图的出发点 通常以中层数据流图作为设计分E-R图的依据,An Introduction to Database Sy,An Introduction to Database System,选择局部应用(续),设计分E-R图的出发点,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图,任务将各局部应用涉及的
12、数据分别从数据字典中抽取出来参照数据流图,标定各局部应用中的实体、实体的属性、标识实体的码确定实体之间的联系及其类型(1:1,1:n,m:n),An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),两条准则:(1)属性不能再具有需要描述的性质。即属性必须是不可分的数据项,不能再由另一些属性组成(2)属性不能与其他实体具有联系。联系只发生在实体之间,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-
13、R图(续),职称作为一个实体,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),病房作为一个实体,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),仓库作为一个实体,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),实例销售管理子系统分E-R图的设计销售管理子系统的主要功能:
14、处理顾客和销售员送来的订单工厂是根据订货安排生产的交出货物同时开出发票收到顾客付款后,根据发票存根和信贷情况进行应收款处理,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),下图是第一层数据流图,虚线部分划出了系统边界,图7.18 销售管理子系统第一层数据流图,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),上图中把系统功能又分为4个子系统,下面四个图是第二层数据流图,图7.19
15、 接收订单,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),图7.20 处理订单,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),图7.21 开发票,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),图7.22 支付过账,An Introduction to Databa
16、se Sy,An Introduction to Database System,逐一设计分E-R图(续),分E-R图的框架,An Introduction to Database Sy,An Introduction to Database System,逐一设计分E-R图(续),参照第二层数据流图和数据字典,遵循两个准则,进行如下调整:(1)订单与订单细节是1n的联系(2)原订单和产品的联系实际上是订单细节和产品的联系。(3)图7.21中“发票主清单”是一个数据存储,不必作为实体加入分E-R图(4)工厂对大宗订货给予优惠,An Introduction to Database Sy,An



- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数据库 系统 概论 第七 设计 课件

链接地址:https://www.31ppt.com/p-2062503.html