29
©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise Chen’s Type Guidance 1

Chen’s Type Guidance

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Chen’s Type Guidance

�1

Page 2: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.3 - A Multivalued Attribute in an Entity

�2

Page 3: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.4 – Splitting the Multivalued Attributes into New Attributes

�3

Page 4: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.6 - Depiction of a Derived Attribute

�4

Page 5: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Table 4.2 - Advantages and Disadvantages of Storing Derived Attributes

�5

Page 6: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.7 - Connectivity and Cardinality in an ERD

�6

Page 7: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.8 - A Weak (Non-Identifying) Relationship between COURSE and CLASS

�7

Page 8: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.9 - A Strong (Identifying) Relationship between COURSE and CLASS

�8

Page 9: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.10 - A Weak Entity in an ERD

�9

Page 10: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.11 - A Weak Entity in a Strong Relationship

�10

Page 11: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Table 4.3 - Crow’s Foot Symbols

�11

Page 12: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.13 - CLASS is Optional to COURSE

�12

Page 13: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.14 - COURSE and CLASS in a Mandatory Relationship

�13

Page 14: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.15 - Three Types

of Relationship

Degree

�14

Page 15: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.17 - An ER Representation of Recursive Relationships

�15

Page 16: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.23 - Converting the M:N Relationship into Two 1:M Relationships

�16

Page 17: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.25 - A Composite Entity in an ERD

�17

Page 18: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.26 - The First Tiny College ERD Segment

�18

Page 19: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.27 - The Second Tiny College ERD Segment

�19

Page 20: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.28 - The Third Tiny College ERD Segment

�20

Page 21: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.29 - The Fourth Tiny College ERD Segment

�21

Page 22: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.30 - The Fifth Tiny College ERD Segment

�22

Page 23: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.31 - The Sixth Tiny College ERD Segment

�23

Page 24: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.32 - The Seventh Tiny College ERD Segment

�24

Page 25: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.33 - The Eighth Tiny College ERD Segment

�25

Page 26: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.34 - The Ninth Tiny College ERD Segment

�26

Page 27: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Table 4.4 - Components of the ERM

�27

Page 28: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Database Design Challenges: Conflicting Goals

�28

Database design must conform to design standards

Need for high processing speed may limit the number and complexity of logically desirable relationships

Need for maximum information generation may lead to loss of clean design structures and high transaction speed

Page 29: Chen’s Type Guidance

©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.

Figure 4.38 - Various Implementations of the 1:1

Recursive Relationship

�29