加州理工学院-计算系统导论 (9)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

E/R is a visual syntax for DB design which is precise enough for technical points, but abstracted enough for non-technical people
9
Lecture 4 > Section 1 > Motivation
• Who should access the data?
6
Lecture 4 > Section 1 > Motivation
Database Design Process
1. Requirements Analysis
2. Conceptual Design
3. Logical, Physical, Security, etc.
This is where E/R fits in. 7
Lecture 4 > Section 1 > Motivation
Database Design Process
1. Requirements Analysis
2. Conceptual Design
3. More:
• Logical Database Design
3. Advanced E/R Concepts
• ACTIVITY: E/R Translation
2
Lecture 4 > Section 1
1. E/R Basics: Entities & Relations
3
Lecture 4 > Section 1
What you will learn about in this section
2. Conceptual Design
• A high-level description of the database
• Sufficiently precise that technical people can understand it
• But, not so precise that non-technical people can’t participate
• What entities to model • How entities are related • What constraints exist in the domain • How to achieve good designs
This the first project
• Several formalisms exist
2. Conceptual Design
E/R Model & Diagrams used
price
name
category
Product
Makes
3. Logical, Physical, Security, etc.
This process is
iterated many
name
times
Company
• We discuss one flavor of E/R diagrams
5
Lecture 4 > Section 1 > Motivation
Database Design Process
1. Requirements Analysis
2. Conceptual Design
3. Logical, Physical, Security, etc.
• Physical Database Design
• Security Design
3. Logical, Physical, Security, etc.
8
Lecture 4 > Section 1 > Motivation
Database Design Process
1. Requirements Analysis
Daபைடு நூலகம்abase Design
• Database design: Why do we need it?
• Agree on structure of the database before deciding on a particular implementation
• Consider issues such as:
Lecture 4
Lecture 4: The E/R Model
Lecture 4
Today’s Lecture
1. E/R Basics: Entities & Relations
• ACTIVITY: Crayon time!
2. E/R Design considerations
• ACTIVITY: Crayon time pt. II
Interlude: Impact of the ER model
• The E/R model is one of the most cited articles in Computer Science
• “The Entity-Relationship model – toward a unified view of data” Peter Chen, 1976
1. Requirements analysis
• What is going to be stored?
Technical and nontechnical people are involved
• How is it going to be used?
• What are we going to do with the data?
• Used by companies big and small
• You’ll know it soon enough
10
Lecture 4 > Section 1 > Entities
Entities and Entity Sets
• Entities & entity sets are the primitive unit of the E/R model
1. High-level motivation for the E/R model 2. Entities 3. Relations 4. ACTIVITY: Crayon Time! Drawing E/R diagrams
4
Lecture 4 > Section 1 > Motivation
相关文档
最新文档