Entity-Relationship modeling Transparencies

Slides:



Advertisements
Similar presentations
the Entity-Relationship (ER) Model
Advertisements

Entity Relationship (ER) Modeling
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
CSC271 Database Systems Lecture # 22. Summary: Previous Lecture  Applying Database SDLC on DreamHome  Database planning  System definition  Requirements.
Chapter 6 Methodology Logical Database Design for the Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Pertemuan Entity Relationship Diagram
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Lecture Eleven Entity-Relationship Modelling
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship (E-R) Model
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Data Modeling Using the Entity-Relationship Model
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
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.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Entity-Relationship Model
Chapter 5 Entity Relationship (ER) Modelling
Chapter 5 Entity–Relationship Modeling
Chapter 11 (I) CIS458 Sungchul Hong. Chapter 11 - Objectives How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Entity Relationship Modeling
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
C HAPTER 11 Entity-Relationship modelling Transparencies © Pearson Education Limited 1995,
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
9/10/2012ISC 329 Isabelle Bichindaritz1 Entity Relationship (E-R) Modeling.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
1 Chapter 11 Entity-Relationship Modeling Transparencies Last Updated: 25 April 2011 By M. Arief
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
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.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Databases Illuminated Chapter 3 The Entity Relationship Model.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Entity Relationship Modeling
Part3 Database Analysis and Design Techniques Chapter 05- Entity-Relationship Modeling Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
1 Database Systems Entity Relationship (E-R) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 11 (2) CIS458 Sungchul Hong. Structural Constraints Main type of constraint on relationships is called multiplicity. Multiplicity - number (or.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Chapter # 3 Data Modeling Using the Entity-Relationship (ER) Model
Methodology Logical Database Design for the Relational Model
COP Introduction to Database Structures
Conceptual Design & ERD Modelling
TMC2034 Database Concept and Design
Entity-Relationship Modeling
Entity-Relationship Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 4 Entity Relationship (ER) Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Presentation transcript:

Entity-Relationship modeling Transparencies Chapter 7 Entity-Relationship modeling Transparencies © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Chapter 7 - Objectives How to use ER modeling in database design. The basic concepts of an ER model called entities, relationships, and attributes. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Chapter 7 - Objectives A diagrammatic technique for displaying an ER model. How to identify and solve problems in an ER model called connection traps. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 ER modeling Top-down approach to database design. Start by identifying the important data (called entities) and relationships between the data. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 ER modeling Then add more details such as the information we want to hold about the entities and relationships (called attributes) and any constraints on the entities, relationships, and attributes. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Entities Entity A set of objects with the same properties, which are identified by a user or organization as having an independent existence. Entity occurrence Each uniquely identifiable object within a set. © Pearson Education Limited, 2004

Entities with physical and conceptual existence © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 ER diagram of entities © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Relationships Relationship A set of meaningful associations among entities. Relationship occurrence Each uniquely identifiable association within a set. © Pearson Education Limited, 2004

ER diagram of relationships © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Relationships Degree of a relationship Number of participating entities in relationship. Relationship of degree : two is binary three is ternary four is quaternary. © Pearson Education Limited, 2004

Example of ternary relationship © Pearson Education Limited, 2004

Recursive relationships Relationship where same entity participates more than once in different roles. Relationships may be given role names to indicate purpose that each participating entity plays in a relationship. © Pearson Education Limited, 2004

Example of a recursive relationship © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Attributes Property of an entity or a relationship. Hold values that describe each occurrence of an entity or relationship, and represent the main source of data stored in the database. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Attributes Attribute can be classified as being: simple or composite single-valued or multi-valued or derived © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Attributes Simple attribute Attribute composed of a single component. Composite attribute Attribute composed of multiple components. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Attributes Single-valued attribute Attribute that holds a single value for an entity occurrence. Multi-valued attribute Attribute that holds multiple values for an entity occurrence. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Attributes Derived attribute Attribute that represents a value that is derivable from value of a related attribute, or set of attributes, not necessarily in the same entity. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Keys Superkey An attribute, or set of attributes, that uniquely identifies each entity occurrence. Candidate key A superkey that contains only the minimum number of attributes necessary for unique identification of each entity occurrence. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Keys Primary key The candidate key that is selected to identify each entity occurrence. Alternate key The candidate keys that are not selected as the primary key of the entity. © Pearson Education Limited, 2004

ER diagram of entities and their attributes © Pearson Education Limited, 2004

Strong and weak entities Strong entity Entity that is not dependent on the existence of another entity for its primary key. Weak entity Entity that is partially or wholly dependent on the existence of another entity, or entities, for its primary key. © Pearson Education Limited, 2004

Multiplicity constraints on relationships Represents the number of occurrences of one entity that may relate to a single occurrence of an associated entity. Represents policies (called business rules) established by user or company. © Pearson Education Limited, 2004

Multiplicity constraints The most common degree for relationships is binary. Binary relationships are generally referred to as being: one-to-one (1:1) one-to-many (1:*) many-to-many (*:*) © Pearson Education Limited, 2004

1:1 relationship – individual examples © Pearson Education Limited, 2004

1:1 relationship – multiplicity © Pearson Education Limited, 2004

1:* relationship – individual examples © Pearson Education Limited, 2004

1:* relationship – multiplicity © Pearson Education Limited, 2004

*:* relationship – individual examples © Pearson Education Limited, 2004

*:* relationship – multiplicity © Pearson Education Limited, 2004

Complex relationships Multiplicity is the number (or range) of possible occurrences of an entity type in an n-ary relationship when other (n-1) values are fixed. © Pearson Education Limited, 2004

Complex relationship – individual examples © Pearson Education Limited, 2004

Complex relationship – multiplicity © Pearson Education Limited, 2004

Summary of multiplicity constraints © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Multiplicity Made up of two types of restrictions on relationships: cardinality and participation © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Multiplicity Cardinality Describes the number of possible relationships for each participating entity. Participation Determines whether all or only some entity occurrences participate in a relationship. © Pearson Education Limited, 2004

Multiplicity as cardinality and participation constraints © Pearson Education Limited, 2004

Relationship with attributes © Pearson Education Limited, 2004

Problems with ER models Problems may arise when designing an ER model called connection traps. Often due to a misinterpretation of the meaning of certain relationships. Two main types of connection traps are called fan traps and chasm traps. © Pearson Education Limited, 2004

Problems with ER models Fan trap Two entities have a 1:* relationship that fan out from a third entity, but the two entities should have a direct relationship between them to provide the necessary information. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 An example of a fan trap © Pearson Education Limited, 2004

Fan trap – individual example Cannot tell which member of staff uses car SH34. © Pearson Education Limited, 2004

© Pearson Education Limited, 2004 Resolving the fan trap © Pearson Education Limited, 2004

Fan trap resolved – individual example Can now tell which car staff use. © Pearson Education Limited, 2004

Problems with ER models Chasm trap A model suggests the existence of a relationship between entities, but the pathway does not exist between certain entity occurrences. © Pearson Education Limited, 2004

An example of a chasm trap © Pearson Education Limited, 2004

Chasm trap – individual example Cannot tell which branch staff S0003 works at. © Pearson Education Limited, 2004

Resolving the chasm trap © Pearson Education Limited, 2004

Chasm trap resolved – individual example Can now tell which branch each member of staff works at. © Pearson Education Limited, 2004