chapter 05 – part 2
DESCRIPTION
Chapter 05 – Part 2. Data Modeling with the Entity-Relationship Model. Contents. A. Sales Order Problem B. Solution. A. Sales Order Problem. A company want to computerize all data. The followings are reports:. Let’s design DB diagram for above requirements. B. Solution. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/1.jpg)
Slide 1
Chapter 05 – Part 2Data Modeling with the
Entity-Relationship Model
![Page 2: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/2.jpg)
Slide 2
ContentsA. Sales Order ProblemB. Solution
![Page 3: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/3.jpg)
Slide 3
A. Sales Order Problem A company want to computerize all data. The
followings are reports:
![Page 4: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/4.jpg)
Slide 4
Let’s design DB diagram for above requirements
![Page 5: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/5.jpg)
Slide 5
B. Solution1. Logical Analysis2. Physical Analysis
![Page 6: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/6.jpg)
Slide 6
1. Logical Analysis1.1. First solution1.2. Second solution1.3. Identify Recursive Relationship
![Page 7: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/8.jpg)
Slide 8
1.1.1. Identify Entity
![Page 9: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/9.jpg)
Slide 9
1.1.2. Identify Attribute
![Page 10: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/12.jpg)
Slide 12
1.1.3.2. Design using ID-Dependent Entity
![Page 13: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/13.jpg)
Slide 13
1.1.4. Identify Primary Identifier
![Page 14: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/14.jpg)
Slide 14
1.1.5. Identify Alternative Identifier
![Page 15: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/15.jpg)
Slide 15
1.1.6. Identify Mandatory Attribute
![Page 16: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/17.jpg)
Slide 17
1.1.7.1. Identify Maximum Cardinality
![Page 18: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/18.jpg)
Slide 18
1.1.7.2. Identify Minimum Cardinality
![Page 19: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/20.jpg)
Slide 20
1.2.1. Identify Entity
![Page 21: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/21.jpg)
Slide 21
1.2.2. Identify Attribute
![Page 22: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/22.jpg)
Slide 22
1.2.3. Identify Primary Identifier
![Page 23: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/23.jpg)
Slide 23
1.2.4. Identify Alternative Identifier
![Page 24: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/24.jpg)
Slide 24
1.2.5. Identify Mandatory Attribute
![Page 25: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/26.jpg)
Slide 26
1.2.6.1 Maximum Cardinality on Diagram
![Page 27: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/27.jpg)
Slide 27
1.2.6.2. Minimum Cardinality on Diagram
![Page 28: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/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: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/30.jpg)
Slide 30
1.3.2. Recursive Relationship on Diagram
![Page 31: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/31.jpg)
Slide 31
2. Physical Diagram
![Page 32: Chapter 05 – Part 2](https://reader035.vdocument.in/reader035/viewer/2022062315/56816427550346895dd5e6aa/html5/thumbnails/32.jpg)
Slide 32
?