Presentation is loading. Please wait.

Presentation is loading. Please wait.

CMIS 450 Database Design Dr. Bijoy Bordoloi Entity Relationship (E-R) Modeling: Additional Notes.

Similar presentations


Presentation on theme: "CMIS 450 Database Design Dr. Bijoy Bordoloi Entity Relationship (E-R) Modeling: Additional Notes."— Presentation transcript:

1 CMIS 450 Database Design Dr. Bijoy Bordoloi Entity Relationship (E-R) Modeling: Additional Notes

2 Relationships with attributes Associative Entities

3 Relationship Attributes: Example

4 A binary relationship with an attribute Here, the date completed attribute pertains specifically to the employee’s completion of a course…it is an attribute of the relationship

5 A ternary relationship with attributes

6 Representing a bill-of -materials structure A unary relationship with an attribute. This has a many- to-many relationship

7 Associative Entities It’s an entity – it has attributes AND it’s a relationship – it links entities together When should a relationship with attributes instead be an associative entity ? –All relationships for the associative entity should be many –The associative entity could have meaning independent of the other entities –The associative entity preferably has a unique identifier, and should also have other attributes –The associative may be participating in other relationships other than the entities of the associated relationship –Ternary relationships should be converted to associative entities

8 Many-to-Many Relationships and Associative Entities In my opinion, it is a good modeling practice to model many-to-many relationships as two one-to-many relationships with an Associative Entity in between – irrespective of whether the many-to-many relationship has some attribute(s) or not. Examples:

9 An associative entity (CERTIFICATE) Associative entity involves a rectangle with a diamond inside. Note that the many-to-many cardinality symbols face toward the associative entity and not toward the other entities

10 An associative entity – bill of materials structure

11 Ternary relationship as an associative entity


Download ppt "CMIS 450 Database Design Dr. Bijoy Bordoloi Entity Relationship (E-R) Modeling: Additional Notes."

Similar presentations


Ads by Google