Entity Relationship (E-R) Modeling

Slides:



Advertisements
Similar presentations
Chapter # 4 BIS Database Systems
Advertisements

Entity Relationship (E-R) Modeling
Entity Relationship (E-R) Modeling
Entity Relationship (E-R) Modeling Hachim Haddouti
Entity Relationship (ER) Modeling
Chapter 4 Entity Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Entity Relationship (E-R) Modeling
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Entity Relationship (E-R) Modeling
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
Data Modeling 1 Yong Choi School of Business CSUB.
Yong Choi School of Business CSUB
Entity-Relationship modeling Transparencies
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
ITEC 3220M Using and Designing Database Systems Instructor: Prof. Z.Yang Course Website: 3220m.htm
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 5 Entity Relationship (ER) Modelling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
9/10/2012ISC 329 Isabelle Bichindaritz1 Entity Relationship (E-R) Modeling.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
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 
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
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
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
1 Database Systems Entity Relationship (E-R) Modeling.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Entity Relationship Modeling
Entity Relationship (E-R) Model
Database Systems: Design, Implementation, and Management Tenth Edition
Logical Database Design and the Rational Model
Conceptual Design & ERD Modelling
TMC2034 Database Concept and Design
Chen’s Type Guidance.
Entity Relationship (E-R) Modeling
Entity-Relationship Model
Tables and Their Characteristics
Database Design – Lecture 4
Outline of the ER Model By S.Saha
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Database Modeling using Entity Relationship Model (E-R Model)
Chapter 5 Advanced Data Modeling
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
ER MODELING Instructor: SAMIA ARSHAD
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Entity Relationship (E-R) Modeling Chapter 3 Entity Relationship (E-R) Modeling

In this chapter, you will learn: What a conceptual model is and what its purpose is The difference between internal and external models How internal and external models serve the database design process How relationships between entities are defined and refined, and how such relationships are incorporated into the database design process How ERD components affect database design and implementation

Basic Modeling Concepts Art and science Good judgment coupled with powerful design tools Models “Description or analogy used to visualize something that cannot be directly observed” Webster’s Dictionary

Basic Modeling Concepts Data Model Relatively simple representation of complex real-world data structures Basic tools for database design Abstraction Good database design starts with a good design of data model.

Basic Modeling Concepts Data Model Different views of data and different concerns Communication is needed. Impacts on overall management system and policy, as well as decision make. Blueprint, architecture, framework

Data Models: Degrees of Data Abstraction Three different models (according to the degree of abstract) Conceptual model Global view of data Basis for identification and description of main data items Internal model Representation of database as seen by DBMS Adapts conceptual model to specific DBMS External model Based on internal data model Users’ views of data environment Provides subsets of internal view Physical model Lowest level of abstraction Describe the ways data being stored

The Entity Relationship (E-R) Model Represents conceptual view Main Components Entities Corresponds to entire table, not row Represented by rectangle Attributes Relationships

What Should an Entity Be? SHOULD BE: An object that will have many instances in the database An object that will be composed of multiple attributes An object that we are trying to model SHOULD NOT BE: A user of the database system An output of the database system (e.g. a report)

Inappropriate entities Figure 3-4 System output System user Appropriate entities

Attributes Characteristics of entities Domain is set of possible values Primary keys underlined Figure 3.6

Simple Composite (avoided) Multi-valued (avoid) in RDBMS Derived Cannot be subdivided Age, sex, marital status Composite (avoided) Can be subdivided into additional attributes Address into street, city, zip Single-valued Can have only a single value Person has one social security number Multi-valued (avoid) in RDBMS Can have many values Person may have several college degrees How to avoid? (see next slide) Derived Can be derived with algorithm (Age can be derived from date of birth) Need to be stored

Relationships Association between entities Connected entities are called participants Operate in both directions Connectivity describes relationship classification 1:1, 1:M, M:N Cardinality Expresses number of entity occurrences associated with one occurrence of related entity

Connectivity and Cardinality in an ERD Figure 3.12

Relationship Participation

Relationship Strength Existence dependence Entity’s existence depends on existence of related entities Existence-independent entities can exist apart from related entities Example:

Relationship Strength Weak (non-identifying) One entity is existence-independent on another PK of related entity doesn’t contain PK component of parent entity Strong (identifying) One entity is existence-dependent on another PK of related entity contains PK component of parent entity

Weak Entity Existence-dependent on another entity Has primary key that is partially or totally derived from parent entity Figure 3.19

Relationship Degree Indicates number of associated entities Unary Single entity Recursive Exists between occurrences of same entity set Binary Two entities associated Ternary Three entities associated

Three Types of Relationships Figure 3.21

Composite Entities Used to ‘bridge’ between M:N relationships Bridge entities composed of primary keys of each entity needing connection Figure 3.30

Composite Entities (con’t.) Figure 3.31

Entity Supertypes and Subtypes Generalization hierarchy Depicts relationships between higher-level supertype and lower-level subtype entities Supertype has shared attributes Subtypes have unique attributes Disjoint relationships Unique subtypes Non-overlapping Indicated with a ‘G’ Overlapping subtypes use ‘Gs’ Symbol

Generalization Hierarchy with Overlapping Subtypes Figure 3.35

Developing an E-R Diagram Iterative Process Step1: General narrative of organizational operations developed Step2: Basic E-R Model graphically depicted and reviewed Step3: Modifications made to incorporate newly discovered E-R components Repeat process until designers and users agree E-R Diagram complete

Supertype/Subtype Relationship in an ERD

First ERD Segment Established Figure 3.43

Second and Third ERD Segments Established

Fourth and Fifth ERD Segments Established

Sixth and Seventh ERD Segments Established

Eighth ERD Segment Established

Ninth ERD Segment Established Figures 3.51

Components of E-R Model Table 3.2

Completed ERD Figure 3.52