1 / 11

The Entity-Relationship Model (Chapter 3 Additional Notes – Part b)

The Entity-Relationship Model (Chapter 3 Additional Notes – Part b). Laku Chidambaram W.P. Wood Professor of MIS University of Oklahoma. Overview. Degree of a Relationship Cardinality of a Relationship Modeling Complex Relationships. Relationships. STUDENT. DORMITORY. Lives in.

ownah
Download Presentation

The Entity-Relationship Model (Chapter 3 Additional Notes – Part b)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Entity-Relationship Model(Chapter 3 Additional Notes – Part b) Laku Chidambaram W.P. Wood Professor of MIS University of Oklahoma

  2. Overview • Degree of a Relationship • Cardinality of a Relationship • Modeling Complex Relationships

  3. Relationships STUDENT DORMITORY Lives in STUDENT COURSE Registers for

  4. Degree of Relationship • Number of entity types involved • What degree are these relationships? • “registers for” • “is married to” • Patient “undergoes” a Test recommended by a Doctor • Common: • Unary (recursive; only one entity type is involved) • Binary (most common; two entity types are involved) • Ternary (relationship among 3 entity types)

  5. Degree of Relationship: Examples EMPLOYEE is married to PERSON is assigned MEDICATION prescribes DOCTOR PARKING SPACE PATIENT

  6. Cardinality • Number of instances of one entity that are associated with another. For example: • one student with many courses • one child with one father • Constraints • Minimum (lower) and maximum (upper) bounds on the number of instances • Usually 0, 1 or many • Mandatory (when min & max = 1) and optional (when min = 0)

  7. Minimum is zero (don’t need to have any) Minimum is one (need to have at least 1) Maximum is one (can only have up to 1) Maximum is many (can have any number) Representing Cardinality

  8. Examples of Binary Relationships (with Cardinality) Course Student takes Car Person owns Person Sport plays

  9. Registers >| |< Student Course |< >| Student Registration Course Associative Entity (+ Cardinality)

  10. Modeling Time-Dependent Data From McFadden, Hoffer & Prescott, 1999

  11. Professor Course 4 Multiple Relationships is qualified to teach is scheduled to teach

More Related