slide 1 chapter 05 – part 2 data modeling with the entity-relationship model
DESCRIPTION
Slide 3 A. Sales Order Problem A company want to computerize all data. The followings are reports:TRANSCRIPT
![Page 1: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/1.jpg)
Slide 1
Chapter 05 – Part 2Data Modeling with the
Entity-Relationship Model
![Page 2: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/2.jpg)
Slide 2
ContentsA. Sales Order ProblemB. Solution
![Page 3: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/3.jpg)
Slide 3
A. Sales Order Problem A company want to computerize all data. The
followings are reports:
![Page 4: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/4.jpg)
Slide 4
Let’s design DB diagram for above requirements
![Page 5: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/5.jpg)
Slide 5
B. Solution1. Logical Analysis2. Physical Analysis
![Page 6: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/6.jpg)
Slide 6
1. Logical Analysis1.1. First solution1.2. Second solution1.3. Identify Recursive Relationship
![Page 7: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/7.jpg)
Slide 7
1.1. First solution1.1.1. Identify Entity1.1.2. Identify Attribute1.1.3. Identify Weak Entity1.1.4. Identify Primary Identifier1.1.5. Identify Alternative Identifier1.1.6. Identify Mandatory Attribute1.1.7. Identify Relationship
![Page 8: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/8.jpg)
Slide 8
1.1.1. Identify Entity
![Page 9: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/9.jpg)
Slide 9
1.1.2. Identify Attribute
![Page 10: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/10.jpg)
Slide 10
1.1.3. Identify Weak Entity1.1.3.1. What is Weak Entity?1.1.3.2. Design using ID-Dependent Entity
![Page 11: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/11.jpg)
Slide 11
1.1.3.1. What is Weak Entity? A weak entity is an entity whose existence
depends upon another entity. All ID-Dependent entities are considered weak.
An ID-dependent entity is an entity whose identifier includes the identifier of another entity.
But there are also non-ID-dependent weak entities. The identifier of the parent does not appear in the identifier
of the weak child entity.
![Page 12: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/12.jpg)
Slide 12
1.1.3.2. Design using ID-Dependent Entity
![Page 13: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/13.jpg)
Slide 13
1.1.4. Identify Primary Identifier
![Page 14: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/14.jpg)
Slide 14
1.1.5. Identify Alternative Identifier
![Page 15: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/15.jpg)
Slide 15
1.1.6. Identify Mandatory Attribute
![Page 16: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/16.jpg)
Slide 16
1.1.7. Identify Relationship1.1.7.1. Identify Maximum Cardinality1.1.7.2. Identify Minimum Cardinality
![Page 17: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/17.jpg)
Slide 17
1.1.7.1. Identify Maximum Cardinality
![Page 18: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/18.jpg)
Slide 18
1.1.7.2. Identify Minimum Cardinality
![Page 19: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/19.jpg)
Slide 19
1.2. Second solution1.2.1. Identify Entity1.2.2. Identify Attribute1.2.3. Identify Primary Identifier1.2.4. Identify Alternative Identifier1.2.5. Identify Mandatory Attribute1.2.6. Identify Relationship
![Page 20: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/20.jpg)
Slide 20
1.2.1. Identify Entity
![Page 21: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/21.jpg)
Slide 21
1.2.2. Identify Attribute
![Page 22: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/22.jpg)
Slide 22
1.2.3. Identify Primary Identifier
![Page 23: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/23.jpg)
Slide 23
1.2.4. Identify Alternative Identifier
![Page 24: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/24.jpg)
Slide 24
1.2.5. Identify Mandatory Attribute
![Page 25: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/25.jpg)
Slide 25
1.2.6. Identify Relationship1.2.6.1. Identify Maximum Cardinality1.2.6.2. Identify Minimum Cardinality
![Page 26: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/26.jpg)
Slide 26
1.2.6.1 Maximum Cardinality on Diagram
![Page 27: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/27.jpg)
Slide 27
1.2.6.2. Minimum Cardinality on Diagram
![Page 28: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/28.jpg)
Slide 28
1.3. Identify Recursive Relationship
1.3.1. What is Recursive Relationship?1.3.2. Recursive Relationship on Diagram
![Page 29: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/29.jpg)
Slide 29
1.3.1. What is Recursive Relationship?
A recursive relationship occurs when an entity has a relationship to itself.
There are three types of Recursive Relationships: 1: 1 1:N N:M
![Page 30: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/30.jpg)
Slide 30
1.3.2. Recursive Relationship on Diagram
![Page 31: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/31.jpg)
Slide 31
2. Physical Diagram
![Page 32: Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model](https://reader030.vdocuments.mx/reader030/viewer/2022012919/5a4d1b417f8b9ab0599a0f4e/html5/thumbnails/32.jpg)
Slide 32
?