1 / 29
文档名称:

unit3 Entity-Relationship Model.ppt

格式:ppt   页数:29
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

unit3 Entity-Relationship Model.ppt

上传人:中国课件站 2011/10/11 文件大小:0 KB

下载得到文件列表

unit3 Entity-Relationship Model.ppt

文档介绍

文档介绍:Unit 3
Entity-Relationship Model
2017/11/10
1
Outline
The Entity-Relationship Model
Basic Elements of the ER Model
Entities, Relationships, Rings ,Attributes
Other Elements of the ER Model
Generalization hierarchies
posite attributes
Identifiers
Weak entity
Reading the ER Diagrams
2017/11/10
2
The Entity-Relationship Model
A database can be modeled as:
a collection of entities,
relationships among entities.
Basic elements of ER model
Entities
Relationships
Rings
Attributes
2017/11/10
3
Entity
Entity is a class of real-world objects.
entities
object or
data instance
PERSON = {p1,p2,p3}
CITY={c1,c2,c3}
用矩形表示 entity
PERSON
CITY
2017/11/10
4
Relationship
Relationship is the aggregation of two or more entities.
用菱形表示 relationship
aggregation
object
LIVES_IN={<p1,c1>, <p2,c3>,<p3,c3>}
表達某人住在某城市的關係
IS_BORN_IN={<p1,c1>,<p2,c2>,<p3,c1>}
表達某人在某城市出生的關係
LIVES_IN
IS_BORN_IN
2017/11/10
5
PERSON = {p1,p2,p3}
CITY={c1,c2,c3}
LIVES_IN={<p1,c1>, <p2,c3>,<p3,c3>}
IS_BORN_IN={<p1,c1>,<p2,c2>,<p3,c1>}
p1
p2
p3
PERSON
c1
c2
c3
CITY
LIVES_IN
p1
p2
p3
PERSON
c1
c2
c3
CITY
IS_BORN_IN
2017/11/10
6
CLASSROOM
COURSE
DAY
MEETS
MEETS 為 relationship 表達出某課程星期幾在哪個教室上課
2017/11/10
7
Ring
Binary relationship connecting an entity to itself. (recursive relationship)
EMPLOYEE
MANAGES
SUBORDINATE_TO
(直屬上司)
MANAGER_OF (管那些人)
若 EMPLOYEE 包含有九個 objects 如下:
EMPLOYEE={p1,p2,p3,p4,p5,p6,p7,p8,p9}
p1
p2
p4
p3
p5
p6
p8
p7
p9
MANAGES={(p1,p2),(p1,p3),(p1,p4),(p3,p5),(p3,p6),(p4,p7),(p4,p8),(p4,p9)}
(0,n)
(0,1)
2017/11/10
8
Cardinality on relationship
CLASSROOM
COURSE
DAY
MEETS
(0,40)
(0,n)
(1,3)
(0,n)
(1,1)
(1,1)
(0,n)
CITY有可能沒人住
最多可住 n 人
每個人至少一個出生地
最多一個出生地
2017/11/10
9
Attributes
Attributes represent elementary properties of entities or relationships.
Attributes 也有 min-max card
min(A,E) 代表 attribute A 的值對應於 entity E 中的 object 出現的最少次數.
max(A,E) 代表 attribute A 的值對應於 entity E 中的 object 出現的最多次數.
PERSON
NAME
SOCIAL

最近更新

2024年安徽中澳科技职业学院单招职业适应性考.. 39页

2024年安徽冶金科技职业学院单招职业适应性测.. 39页

2024年安徽城市管理职业学院单招职业技能测试.. 39页

肺炎巴斯德菌感染与宿主肠道菌群 35页

2024年安徽工贸职业技术学院单招职业适应性考.. 40页

高维算符代数在深度学习中的优化策略 25页

2026年以难忘的小学生活为话题作文600字 5页

2024年安徽电子信息职业技术学院单招职业技能.. 40页

2024年安徽省安庆市单招职业倾向性测试题库含.. 39页

2024年安徽省淮北市单招职业倾向性测试模拟测.. 40页

2026年以珍贵的友情初二中学生作文 8页

2026年以期待为话题的议论文 8页

2026年以我怀念的作文600字 7页

2026年以年味的作文700字 7页

2026年以中秋为主题的作文四年级 8页

2026年代理协议书最新范本 13页

2026年仓库租赁合同协议书简易版 19页

高效能LED照明技术 29页

2024年安徽省黄山市单招职业适应性测试题库含.. 40页

2024年安徽职业技术学院单招职业技能考试题库.. 40页

2024年安阳幼儿师范高等专科学校单招职业倾向.. 41页

2024年宝鸡三和职业学院单招职业倾向性测试题.. 40页

2024年宣化科技职业学院单招职业适应性考试题.. 40页

2024年宿迁泽达职业技术学院单招职业适应性测.. 40页

2024年山东城市服务职业学院单招职业技能测试.. 39页

2024年山东工程职业技术大学单招职业技能测试.. 40页

2024年山东省枣庄市单招职业倾向性测试题库及.. 42页

2024年山东省潍坊市单招职业适应性考试模拟测.. 39页

2024年山东科技职业学院单招职业适应性测试题.. 41页

2024年山东铝业职业学院单招职业技能考试模拟.. 41页