1 / 9

The Entity-Relationship Model

The Entity-Relationship Model. Chapter 2. Database Design Basics: Six Steps in Design. Data Requirements Analysis: a) what must be stored, b) how will it be used, and c) what actions occur most often. Conceptual Database Design: Use ERD(s) to group data into entities and relationships.

donkor
Télécharger la présentation

The Entity-Relationship Model

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 2

  2. Database Design Basics: Six Steps in Design • Data Requirements Analysis: a) what must be stored, b) how will it be used, and c) what actions occur most often. • Conceptual Database Design: Use ERD(s) to group data into entities and relationships. • Logical Database Design: Convert ERD(s) to conceptual schemas. • Schema Refinement: Eliminate redundancy and refine tables for performance. • Physical Database Design: Decide how to store and index the data. • Application and Security Design: Put the DB in the application’s context.

  3. Employees ssn ER Model Basics Attribute (descriptive attribute), entities (relationships) possess these. Entity. A group of these is an entity set. Relationship ( if “ISA”). A group would be a relationship set. ISA Works_In

  4. ER Model Basics (Example) name office phone ssn class name declares Major Students How do we choose a key? Candidate keys and primary keys

  5. ER Model Basics (Example) name office phone ssn class name declares Major Students Two types of constraints to consider: key constraints and participation constratints. Key constraints can be one-to-many or many-to-many Participation constraints can be total or partial

  6. ER Model Basics (Example) name office phone ssn class name declares Major Students Total participation (all) Key constraint (only one) Total participation and key constraint (all and only one)

  7. ER Model: Other Concepts:Weak Entity Sets name did ssn rank name sponsors dependent member The link is “bolded” to show total participation. It must also have an arrowhead to show a key constraint. These symbols must be “bolded” to denote the weak entity set

  8. ER Model: Other Concepts:ISA Relationships name id gender Two constraints of concern with ISA relationships: employee * Overlap (no by default) isa * Covering (no by default) faculty staff student salary contract wage date ins date wage

  9. ER Model: Other Concepts:Aggregation addr order phone name name hires agent customer Could also use a ternary relationship Prod # price name quantity buys product

More Related