Chapter 4 Entity Relationship (ER) Modeling. Learning Objectives. Entity Relationship Model (ERM) In this chapter, you will learn:

Similar documents
Data Modeling and Databases II Entity-Relationship (ER) Model. Gustavo Alonso, Ce Zhang Systems Group Department of Computer Science ETH Zürich

On-Line Data Analytics

South Carolina College- and Career-Ready Standards for Mathematics. Standards Unpacking Documents Grade 5

Page 1 of 11. Curriculum Map: Grade 4 Math Course: Math 4 Sub-topic: General. Grade(s): None specified

Focus of the Unit: Much of this unit focuses on extending previous skills of multiplication and division to multi-digit whole numbers.

San Marino Unified School District Homework Policy

NCU IISR English-Korean and English-Chinese Named Entity Transliteration Using Different Grapheme Segmentation Approaches

IS USE OF OPTIONAL ATTRIBUTES AND ASSOCIATIONS IN CONCEPTUAL MODELING ALWAYS PROBLEMATIC? THEORY AND EMPIRICAL TESTS

Unit 7 Data analysis and design

Problem of the Month: Movin n Groovin

Maximizing Learning Through Course Alignment and Experience with Different Types of Knowledge

Strategies for Solving Fraction Tasks and Their Link to Algebraic Thinking

FIGURE IT OUT! MIDDLE SCHOOL TASKS. Texas Performance Standards Project

Extending Place Value with Whole Numbers to 1,000,000

Designing a Rubric to Assess the Modelling Phase of Student Design Projects in Upper Year Engineering Courses

LESSON: CHOOSING A TOPIC 2 NARROWING AND CONNECTING TOPICS TO THEME

Prokaryotic/Eukaryotic Cells Lesson Plan ETPT 2020:008 Sidney, Tiana, Iyona & Jeremy Team Hinckley 4/23/2013

OCR for Arabic using SIFT Descriptors With Online Failure Prediction

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

Version Space. Term 2012/2013 LSI - FIB. Javier Béjar cbea (LSI - FIB) Version Space Term 2012/ / 18

Word Segmentation of Off-line Handwritten Documents

Notes on The Sciences of the Artificial Adapted from a shorter document written for course (Deciding What to Design) 1

Modeling user preferences and norms in context-aware systems

Developing a concrete-pictorial-abstract model for negative number arithmetic

Machine Learning and Data Mining. Ensembles of Learners. Prof. Alexander Ihler

AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

Backwards Numbers: A Study of Place Value. Catherine Perez

CONCEPT MAPS AS A DEVICE FOR LEARNING DATABASE CONCEPTS

PH.D. IN COMPUTER SCIENCE PROGRAM (POST M.S.)

Mathematics subject curriculum

Mining Association Rules in Student s Assessment Data

RECRUITMENT AND EXAMINATIONS

The Talent Development High School Model Context, Components, and Initial Impacts on Ninth-Grade Students Engagement and Performance

Matching Similarity for Keyword-Based Clustering

Rule-based Expert Systems

Exemplar 6 th Grade Math Unit: Prime Factorization, Greatest Common Factor, and Least Common Multiple

GACE Computer Science Assessment Test at a Glance

South Carolina English Language Arts

MULTILINGUAL INFORMATION ACCESS IN DIGITAL LIBRARY

AQUA: An Ontology-Driven Question Answering System

Facilitating Students From Inadequacy Concept in Constructing Proof to Formal Proof

Introduction to Simulation

Theory of Probability

Early Warning System Implementation Guide

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

An NFR Pattern Approach to Dealing with Non-Functional Requirements

Quality assurance of Authority-registered subjects and short courses

Guide to Teaching Computer Science

This scope and sequence assumes 160 days for instruction, divided among 15 units.

Firms and Markets Saturdays Summer I 2014

Evolutive Neural Net Fuzzy Filtering: Basic Description

Ontologies vs. classification systems

BSM 2801, Sport Marketing Course Syllabus. Course Description. Course Textbook. Course Learning Outcomes. Credits.

Full text of O L O W Science As Inquiry conference. Science as Inquiry

Constructing a support system for self-learning playing the piano at the beginning stage

Rule Learning With Negation: Issues Regarding Effectiveness

A GENERIC SPLIT PROCESS MODEL FOR ASSET MANAGEMENT DECISION-MAKING

A Case Study: News Classification Based on Term Frequency

Regions Of Georgia For 2nd Grade

ECE-492 SENIOR ADVANCED DESIGN PROJECT

How to Judge the Quality of an Objective Classroom Test

The New York City Department of Education. Grade 5 Mathematics Benchmark Assessment. Teacher Guide Spring 2013

Chapter 4 - Fractions

Apps4VA at JMU. Student Projects Featuring VLDS Data. Dr. Chris Mayfield. Department of Computer Science James Madison University

Focused on Understanding and Fluency

Designing a Computer to Play Nim: A Mini-Capstone Project in Digital Design I

Shared Mental Models

Lecture 10: Reinforcement Learning

Module Title: Managing and Leading Change. Lesson 4 THE SIX SIGMA

Build on students informal understanding of sharing and proportionality to develop initial fraction concepts.

Book Reviews. Michael K. Shaub, Editor

Disambiguation of Thai Personal Name from Online News Articles

The Incentives to Enhance Teachers Teaching Profession: An Empirical Study in Hong Kong Primary Schools

Practices Worthy of Attention Step Up to High School Chicago Public Schools Chicago, Illinois

Grammars & Parsing, Part 1:

CLASSIFICATION OF PROGRAM Critical Elements Analysis 1. High Priority Items Phonemic Awareness Instruction

B.S/M.A in Mathematics

Montana Content Standards for Mathematics Grade 3. Montana Content Standards for Mathematical Practices and Mathematics Content Adopted November 2011

PROCESS USE CASES: USE CASES IDENTIFICATION

Degree Qualification Profiles Intellectual Skills

IBM Software Group. Mastering Requirements Management with Use Cases Module 6: Define the System

MULTIMEDIA Motion Graphics for Multimedia

MODULE FRAMEWORK AND ASSESSMENT SHEET

Human Emotion Recognition From Speech

Mooresville Charter Academy

Compositional Semantics

GEB 6930 Doing Business in Asia Hough Graduate School Warrington College of Business Administration University of Florida

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

Teacher Action Research Multiple Intelligence Theory in the Foreign Language Classroom. By Melissa S. Ferro George Mason University

SARDNET: A Self-Organizing Feature Map for Sequences

Math-U-See Correlation with the Common Core State Standards for Mathematical Content for Third Grade

Artificial Neural Networks written examination

Lower and Upper Secondary

Digital Fabrication and Aunt Sarah: Enabling Quadratic Explorations via Technology. Michael L. Connell University of Houston - Downtown

A Reinforcement Learning Variant for Control Scheduling

KOMAR UNIVERSITY OF SCIENCE AND TECHNOLOGY (KUST)

Emmaus Lutheran School English Language Arts Curriculum

Knowledge-Based - Systems

Number Race as an intensified instruction for low performing children in mathematics in grade one

Shank, Matthew D. (2009). Sports marketing: A strategic perspective (4th ed.). Upper Saddle River, NJ: Pearson/Prentice Hall.

Transcription:

Chapter 4 Entity Relationship (ER) Modeling Learning Objectives In this chapter, you will learn: The main characteristics of entity relationship components How relationships between entities are defined, refined, and incorporated into the database design process How ERD components affect database design and implementation That real-world database design often requires the reconciliation of conflicting goals 2 Entity Relationship Model (ERM) Basis of an entity relationship diagram (ERD) ERD depicts the: Conceptual database as viewed by end user Database s main components Entities Attributes Relationships Entity - Refers to the entity set and not to a single entity occurrence 3 1

Attributes Characteristics of entities Required attribute: Must have a value, cannot be left empty Optional attribute: Does not require a value, can be left empty Domain - Set of possible values for a given attribute Identifiers: One or more attributes that uniquely identify each entity instance 4 Figure 4.1 - The Attributes of the Student Entity: Chen and Crow s Foot 5 Attributes Composite identifier: Primary key composed of more than one attribute Composite attribute: Attribute that can be subdivided to yield additional attributes Simple attribute: Attribute that cannot be subdivided Single-valued attribute: Attribute that has only a single value Multivalued attributes: Attributes that have many values 6 2

Figure 4.3 - A Multivalued Attribute in an Entity 7 Attributes Multivalued attributes: Attributes that have many values and require creating: Several new attributes, one for each component of the original multivalued attribute A new entity composed of the original multivalued attribute s components Derived attribute: Attribute whose value is calculated from other attributes Derived using an algorithm 8 Figure 4.4 Splitting the Multivalued Attributes into New Attributes 9 3

Figure 4.6 - Depiction of a Derived Attribute 10 Table 4.2 - Advantages and Disadvantages of Storing Derived Attributes 11 Relationships Association between entities that always operate in both directions Participants: Entities that participate in a relationship Connectivity: Describes the relationship classification Cardinality: Expresses the minimum and maximum number of entity occurrences associated with one occurrence of related entity 12 4

Figure 4.7 - Connectivity and Cardinality in an ERD 13 Existence Dependence Existence dependence Existence independence Entity exists in the database only when it is associated with another related entity occurrence Entity exists apart from all of its related entities Referred to as a strong entity or regular entity 14 Relationship Strength Weak (non-identifying) relationship Primary key of the related entity does not contain a primary key component of the parent entity Strong (identifying) relationships Primary key of the related entity contains a primary key component of the parent entity 15 5

Figure 4.8 - A Weak (Non- Identifying) Relationship between COURSE and CLASS 16 Figure 4.9 - A Strong (Identifying) Relationship between COURSE and CLASS 17 Conditions Weak Entity Existence-dependent Has a primary key that is partially or totally derived from parent entity in the relationship Database designer determines whether an entity is weak based on business rules 18 6

Figure 4.10 - A Weak Entity in an ERD 19 Figure 4.11 - A Weak Entity in a Strong Relationship 20 Relationship Participation Optional participation One entity occurrence does not require a corresponding entity occurrence in a particular relationship Mandatory participation One entity occurrence requires a corresponding entity occurrence in a particular relationship 21 7

Table 4.3 - Crow s Foot Symbols 22 Figure 4.13 - CLASS is Optional to COURSE 23 Figure 4.14 - COURSE and CLASS in a Mandatory Relationship 24 8

Relationship Degree Indicates the number of entities or participants associated with a relationship Unary relationship: Association is maintained within a single entity Recursive relationship: Relationship exists between occurrences of the same entity set Binary relationship: Two entities are associated Ternary relationship: Three entities are associated 25 Figure 4.15 - Three Types of Relationship Degree 26 Figure 4.17 - An ER Representation of Recursive Relationships 27 9

Associative (Composite) Entities Used to represent an M:N relationship between two or more entities Is in a 1:M relationship with the parent entities Composed of the primary key attributes of each parent entity May also contain additional attributes that play no role in connective process 28 Figure 4.23 - Converting the M:N Relationship into Two 1:M Relationships 29 Figure 4.25 - A Composite Entity in an ERD 30 10

Developing an ER Diagram Create a detailed narrative of the organization s description of operations Identify business rules based on the descriptions Identify main entities and relationships from the business rules Develop the initial ERD Identify the attributes and primary keys that adequately describe entities Revise and review ERD 31 Figure 4.26 - The First Tiny College ERD Segment 32 Figure 4.27 - The Second Tiny College ERD Segment 33 11

Figure 4.28 - The Third Tiny College ERD Segment 34 Figure 4.29 - The Fourth Tiny College ERD Segment 35 Figure 4.30 - The Fifth Tiny College ERD Segment 36 12

Figure 4.31 - The Sixth Tiny College ERD Segment 37 Figure 4.32 - The Seventh Tiny College ERD Segment 38 Figure 4.33 - The Eighth Tiny College ERD Segment 39 13

Figure 4.34 - The Ninth Tiny College ERD Segment 40 Table 4.4 - Components of the ERM 41 Database Design Challenges: Conflicting Goals Database design must conform to design standards Need for high processing speed may limit the number and complexity of logically desirable relationships Need for maximum information generation may lead to loss of clean design structures and high transaction speed 42 14

Figure 4.38 - Various Implementations of the 1:1 Recursive Relationship 43 15