er model
play

ER Model Entities, attributes, identifiers IT420: Database - PDF document

ER Model Entities, attributes, identifiers IT420: Database Management and HAS-A Relationships Organization Degree: binary, ternary Maximum cardinality Minimum cardinality Data Modeling with the Weak entities


  1. ER Model � Entities, attributes, identifiers IT420: Database Management and � HAS-A Relationships Organization � Degree: binary, ternary � Maximum cardinality � Minimum cardinality Data Modeling with the � Weak entities � ID-dependent entities; identifying relationships Entity-Relationship Model � IS-A Relationships � Inclusive, Exclusive 1 2 Goals of This Lecture ERwin Symbol Summary � Create ER model from user requirements 3 4 Forms, Reports and ER Model ERwin Symbol Summary (Continued) � User input: � Forms � Reports � Discussions � DB modeler: Entity-Relationship model � Same entities, relationships under the surface 6 8 1

  2. 1:1 Strong Entity Relationships 1:1 Strong Entity Relationships 9 10 1:N Strong Entity Relationships 1:N Strong Entity Relationships 11 12 N:M Strong Entity Relationships N:M Strong Entity Relationships 13 14 2

  3. N:M Strong Entity Relationships The Association Pattern Price column 15 16 Association Class Entity vs. Attribute 17 18 Multi-valued Attribute � Entity Recursive Relationships � Recursive relationship: an entity has a relationship to itself 19 20 3

  4. 1:N Recursive Relationship 1:1 Recursive Relationship 21 22 N:M Recursive Relationship Class Exercise � Draw ER diagram for a database used to manage IT420 class (at least 3 entities) � Specify entities, attributes, identifiers � Specify relationships � Specify cardinalities for relationships 23 24 Class Exercise � Drugwarehouse.com has offered you a free life-time supply of prescription drugs (no questions asked) if you design its database schema. Given the rising cost of health care, you agree. Here is the information that you gathered: � Patients are identified by their SSN, and we also store their names and age � Doctors are identified by their SSN, and we also store their names and specialty � Each patient has one primary care physician � Each doctor has at least one patient � Doctors prescribe drugs for patients. 25 4

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend