Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2004 Pearson Education, Inc.. Chapter 4 Enhanced Entity- Relationship and UML Modeling.

Similar presentations


Presentation on theme: "Copyright © 2004 Pearson Education, Inc.. Chapter 4 Enhanced Entity- Relationship and UML Modeling."— Presentation transcript:

1 Copyright © 2004 Pearson Education, Inc.

2 Chapter 4 Enhanced Entity- Relationship and UML Modeling

3 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-3 FIGURE 4.1 EER diagram notation to represent subclasses and specialization.

4 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-4 FIGURE 4.2 Instances of a specialization.

5 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-5 FIGURE 4.3 Generalization. (a) Two entity types, CAR and TRUCK. (b) Generalizing CAR and TRUCK into the superclass VEHICLE.

6 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-6 FIGURE 4.4 EER diagram notation for an attribute-defined specialization on JobType.

7 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-7 FIGURE 4.5 EER diagram notation for an overlapping (nondisjoint) specialization.

8 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-8 FIGURE 4.6 A specialization lattice with shared subclass ENGINEERING_MANAGER.

9 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-9 FIGURE 4.7 A specialization lattice with multiple inheritance for a UNIVERSITY database.

10 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-10 FIGURE 4.8 Two categories (union types): OWNER and REGISTERED_VEHICLE.

11 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-11 FIGURE 4.9 An EER conceptual schema for a UNIVERSITY database.

12 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-12 FIGURE 4.10 A UML class diagram corresponding to the EER diagram in Figure 4.7, illustrating UML notation for specialization/ generalization.

13 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-13 FIGURE 4.11 Ternary relationship types. (a) The SUPPLY relationship. (b) Three binary relationships not equivalent to SUPPLY. (c) SUPPLY represented as a weak entity type.

14 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-14 FIGURE 4.12 Another example of ternary versus binary relationship types.

15 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-15 FIGURE 4.13 A weak entity type INTERVIEW with a ternary identifying relationship type.

16 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-16 FIGURE 4.13 A weak entity type INTERVIEW with a ternary identifying relationship type.

17 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-17 FIGURE 4.14a,b Aggregation. (a) The relationship type INTERVIEW. (b) Including JOB_OFFER in a ternary relationship type (incorrect).

18 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-18 FIGURE 4.14c Aggregation. (c) Having the RESULTS_IN relationship participate in other relationships (generally not allowed in ER).

19 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-19 FIGURE 4.14d Aggregation. (d) Using aggregation and a composite (molecular) object (generally not allowed in ER).

20 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-20 FIGURE 4.14e Aggregation. (e) Correct representation in ER.

21 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 4-21 FIGURE 4.15 EER schema for a SMALL AIRPORT database.


Download ppt "Copyright © 2004 Pearson Education, Inc.. Chapter 4 Enhanced Entity- Relationship and UML Modeling."

Similar presentations


Ads by Google