Chapter 05 – Part 2

Post on 23-Feb-2016

36 views 0 download

Tags:

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 Presentation

transcript

Slide 1

Chapter 05 – Part 2Data Modeling with the

Entity-Relationship Model

Slide 2

ContentsA. Sales Order ProblemB. Solution

Slide 3

A. Sales Order Problem A company want to computerize all data. The

followings are reports:

Slide 4

Let’s design DB diagram for above requirements

Slide 5

B. Solution1. Logical Analysis2. Physical Analysis

Slide 6

1. Logical Analysis1.1. First solution1.2. Second solution1.3. Identify Recursive Relationship

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

Slide 8

1.1.1. Identify Entity

Slide 9

1.1.2. Identify Attribute

Slide 10

1.1.3. Identify Weak Entity1.1.3.1. What is Weak Entity?1.1.3.2. Design using ID-Dependent Entity

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.

Slide 12

1.1.3.2. Design using ID-Dependent Entity

Slide 13

1.1.4. Identify Primary Identifier

Slide 14

1.1.5. Identify Alternative Identifier

Slide 15

1.1.6. Identify Mandatory Attribute

Slide 16

1.1.7. Identify Relationship1.1.7.1. Identify Maximum Cardinality1.1.7.2. Identify Minimum Cardinality

Slide 17

1.1.7.1. Identify Maximum Cardinality

Slide 18

1.1.7.2. Identify Minimum Cardinality

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

Slide 20

1.2.1. Identify Entity

Slide 21

1.2.2. Identify Attribute

Slide 22

1.2.3. Identify Primary Identifier

Slide 23

1.2.4. Identify Alternative Identifier

Slide 24

1.2.5. Identify Mandatory Attribute

Slide 25

1.2.6. Identify Relationship1.2.6.1. Identify Maximum Cardinality1.2.6.2. Identify Minimum Cardinality

Slide 26

1.2.6.1 Maximum Cardinality on Diagram

Slide 27

1.2.6.2. Minimum Cardinality on Diagram

Slide 28

1.3. Identify Recursive Relationship

1.3.1. What is Recursive Relationship?1.3.2. Recursive Relationship on Diagram

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

Slide 30

1.3.2. Recursive Relationship on Diagram

Slide 31

2. Physical Diagram

Slide 32

?