1 / 28
文档名称:

unit10 Logical Design for the Relational Model.ppt

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

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

unit10 Logical Design for the Relational Model.ppt

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

下载得到文件列表

unit10 Logical Design for the Relational Model.ppt

文档介绍

文档介绍:Unit 10
Logical Design for
the Relational Model
11/10/2017
1
Unit 10
本單元目的
把 model independent design 結果的資料庫概念架構轉為關聯資料庫管理系統可以描述的關聯資料庫
11/10/2017
2
Unit 10
Outlines
An Introduction to the Relational Model
Schema Mapping from the ER model to the Relational Model
Elimination of external identifier
Elimination posite and multi-value attributes
Translation of entities
Translation of relationships
Mapping the operations to SQL
11/10/2017
3
Unit 10
The Relational Model
Schema : STUDENT(NAME, AGE, SEX)
column
attribute
Primary
key
tuple
Data instances
Degree of a relation means the number of columns.
Cardinality of a relation means the number of tuples.
11/10/2017
4
Unit 10
Mathematical definition for a relation
A domain is a collection of values.
D1={a,b} attribute A1 valued from D1
D2={c,d,e} attribute A2 valued from D2
Relation R
11/10/2017
5
Unit 10
Integrity rules
Entity integrity
No attribute participate in the primary key (PK) of a base relation is allowed to accept null values.
Referential integrity
If base relation R2 includes a foreign key (FK) matching the PK of some base relation R1, then every values of FK in R2 must either
be equal to the value of PK in some tuple of R1 or
be wholly null
R1 and R2 are not necessarily distinct.
PK
R1
R2
FK
11/10/2017
6
Unit 10
Example of a relational data base
STUDENT
EXAM
NAME
SEX
AGE
COURSE
CODE
INSTRUC
TOR
EXAM(COURSE_NUMBER, STUDENT_NAME, GRADE)
STUDENT(NAME, AGE, SEX)
COURSE(CODE, INSTRUCTOR)
CODE 和 COURSE_NUMBER 從同一個 domain 出來
STUDENT_NAME 和 NAME從同一個 domain 出來
GRADE
11/10/2017
7
Unit 10
Schema Mapping from the ER model to the Relational Model
Steps:
Elimination of external identifier
Elimination posite and multi-value attributes
Translation of entities
Translation of relationships
Mapping the operations to SQL
11/10/2017
8
Unit 10
Elimination of external identifier
E2 有 internal identifier
E1 的 primary key 是由一個屬於 E1 的 attribute 加上 E2 形成 identifier, 是為 externa

最近更新

2026年作文我的同学 6页

2024年云南新兴职业学院单招职业技能测试题库.. 42页

高效太阳能电池技术 35页

2024年云南理工职业学院单招职业倾向性测试模.. 40页

2024年云南省德宏傣族景颇族自治州单招职业倾.. 40页

2024年云南省迪庆藏族自治州单招职业倾向性考.. 38页

羽绒制品回收再利用的现状与挑战 27页

2024年亳州职业技术学院单招职业适应性考试模.. 38页

2026年余华的活着读后感 7页

2024年保定理工学院单招职业倾向性考试题库汇.. 40页

2024年保险职业学院单招职业技能考试题库完美.. 40页

2026年体育比赛承诺书范例 8页

2024年兰州石化职业技术大学单招职业技能考试.. 40页

2024年兰州航空职业技术学院单招职业倾向性测.. 41页

2024年内蒙古呼伦贝尔市单招职业适应性测试模.. 39页

2024年内蒙古建筑职业技术学院单招职业适应性.. 41页

2024年内蒙古赤峰市单招职业倾向性测试题库推.. 40页

高效光子晶体波导设计 35页

2024年华东政法大学单招职业倾向性考试题库汇.. 40页

2024年南京信息职业技术学院单招职业技能考试.. 40页

2024年南京旅游职业学院单招职业适应性考试题.. 40页

2024年南充电影工业职业学院单招职业技能测试.. 41页

2024年南开大学滨海学院单招综合素质考试模拟.. 40页

绿色消费教育与引导策略 38页

2024年南昌理工学院单招职业技能测试题库及答.. 41页

2024年南通职业大学单招职业适应性考试模拟测.. 40页

2024年南阳职业学院单招综合素质考试题库必考.. 40页

2024年厦门兴才职业技术学院单招职业倾向性考.. 40页

2024年厦门工学院单招职业适应性考试模拟测试.. 40页

2025年重庆市《保安员证》考试题库含答案 39页