Chapter 31 Chapter 3 Data Modeling Using the Entity-Relationship Model.

Slides:



Advertisements
Similar presentations
Database Design The process of finding user requirement
Advertisements

the Entity-Relationship (ER) Model
Lecture plan Outline of DB design process Entity-relationship model
Conceptual Data Modeling: ER
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Conceptual Data Modeling Using Entities and Relationships.
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Week 3 Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model.
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
CS 405G Introduction to Database Systems
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity-Relationship Model
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model.
the Entity-Relationship Model
Lecture 2: Entity-Relationship Modeling
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Entity-Relationship Model. 2 Outline  What is ER Model? And Why?  Overview of Database Design Process  Example COMPANY Database  ER Model Concepts.
Entity-Relationship (ER) Data Model 概念資料模式 (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 4)
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 2: Representing Information with Data Models The lecture notes.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modeling Using the Entity-Relationship
Entity-Relationship Model Ch. 3
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
CS 405G: Introduction to Database Systems Lecture 2 : Database Design I.
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright © 2004 Pearson Education, Inc.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Continued)
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Conceptual Modeling and Database Design.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Entity-Relationship Model Chapter 3 II COSC 457 Sungchul Hong.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Slide 3- 1.
Data Modelling Using Entity-Relationship (ER) Model
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 3: Data Modeling Using the Entity-Relationship (ER) Data Model
An Introduction to Database Systems دانشگاه علم و فناوری مازندران - طراحی و ایجاد بانک های اطلاعاتی 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modeling and the Entity-Relationship Model CS 475 Lecture Notes.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Conceptual Modelling The Entity-Relationship (ER) Model The ER diagram Data Modelling.
Enhanced Entity-Relationship and UML Modeling. 2.
CS 405G Introduction to Database Systems Lecture 3: ER Model Instructor: Chen Qian.
Example COMPANY Database
Chapter 7 Data Modeling Using the Entity-Relationship (ER) Model
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Lecture # 16 July 26,2012 Data Modeling using the Entity Relationship.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Lecture # 17 July 28,2012 Data Modeling using the Entity Relationship.
Data Modeling Using the Entity- Relationship (ER) Model
Chapter 3 Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity- Relationship (ER) Model
Database Management Systems
Entity- Relationship (ER) Model
ER model Ashima Wadhwa.
بسم الله الرحمن الرحيم.
Initial Design of Entity Types: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT Gender.
Conceptual Data Modeling Using Entities & Relationships
Entity Relation Model Tingting Zhang.
Relational Database Design by ER-to-Relational Mapping
Presentation transcript:

Chapter 31 Chapter 3 Data Modeling Using the Entity-Relationship Model

Chapter 32

3 Entity-Relationship(ER) Model The ER model is a high-level conceptual data model. It has not been implemented in any commercial DBMS (?), but is a powerful short hand often used in database design for a first rendition of the miniworld. The ER model was introduced by Peter Chen in 1976, and is now the most widely used conceptual data model.

Chapter 34 Entity-Relationship(ER) Model (con’t) Much work has been done on the ER model, and various extensions and enhancements have been proposed (see Ch. 21 and the text Conceptual Database Design by Batini/Ceri/Navathe, Benjamin Commings).

Chapter 35 Definitions An entity is an object in the miniworld. An attribute of an entity can have a value from a value set (domain) Each entity belongs to some one entity type s.t. entities in one entity type have the same attributes (so each entity type is a set of similar entities).

Chapter 36 Definitions (con’t) A key attribute of an entity type is one whose value uniquely identifies an entity of that type. A combination of attributes may form a composite key. If there is no applicable value for an attribute that attribute is set to a null value.

Chapter 37 Entity Type / Entity Set Entity Type (Intension): EMPLOYEE Attributes: Name, Age, Salary Entity Set (Extension): e 1 = (John Smith, 55, 80000) e 2 = (Joe Doe, 40, 20000) e 3 = (Jane Doe, 27, 30000).

Chapter 38 Attributes Attributes can be –composite / simple (atomic) –single-valued / multivalued –stored / derived –key / nonkey.

Chapter 39 Attribute Examples Name = John Doe Birthdate = May 10, 1989 Age = 9 Degree = null SSN = Name = John Doe Birthdate = May 10 Birthyear = 1989 Age = 9 Degree = null SSN = Name = Jane Doe Birthdate = July 11, 1960 Age = 38 Degree = B.S., M.S. SSN =

Chapter 310

Chapter 311 EMPLOYEE Name, SSN, Sex, Address, Salary, Birthdate, Department, Supervisor, {Works on ( Project, Hours)} WORKS_FOR EMPLOYEEDEPARTMENT 1N Name SSN... Relationship instances of WORKS_FOR: {(KV, CS), (Pan, EE),...}

Chapter 312 ER Diagram for COMPANY Database

Chapter 313 Relationship Type A relationship type R among n entity types E 1,…,E n is a set of relationship instances r i, where each r i associates n entities (e 1,…,e n ), s.t. each e j  E j. Informally, a relationship instance is an association of entities, with exactly one entity from each participating entity type.

Chapter 314 Relationship Type (con’t) The degree n of a relationship type is the number of participating entity types. In the ER model relationships are explicitly represented.

Chapter 315 Entity Roles Each entity type in a relationship type plays a particular role that is described by a role name. Role names are especially important in recursive relationship types where the same entity participates in more than one role: Employee Supervision Supervisor 1N Supervisee

Chapter 316 Weak Entity Type A weak entity type is one without any key attributes of its own. Entities belonging to a weak entity type are identified by being related to another entity type ( called identifying owner) through a relationship type ( called identifying relationship), in combination with values of a set of its own attributes (called partial key). A weak entity type has total participation constraint w.r.t. its identifying relationship.

Chapter 317 Relationship Attributes Relationship types can have attributes as well. in case of 1:1 or 1:N relationships, attributes can be migrated to one of the participating entity types.

Chapter 318 Relationship

Chapter 319 Relationship (con’t)

Chapter 320 Relationship (con’t)

Chapter 321 Fig 3.12

Chapter 322 Fig 3.13

Chapter 323 Structural Constraints Structural constraints of a relationship type: –Cardinality ratio:Limits the number of relationship instances an entity can participate in, eg. 1:1, 1:N, M:N –Participation constraint:If each entity of an entity type is required to participate in some instance of a relationship type, then that participation is total; otherwise, it is partial.

Chapter 324 Structural Constraint Min, Max A more complete specification of the structural constraint on a relationship type can be given by the integer pair (min, max), which means an entity must participate in at least min and at most max relationship instances.

Chapter 325

Chapter 326 A ternary relationship generally represents more information than 3 binary relationships

Chapter 327

Chapter 328 A Weak Entity with a Terary Identifying Relationship