Non-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52

Similar documents
Chapter 4 Entity Relationship Modeling In this chapter, you will learn:

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

Chapter 4. In this chapter, you will learn:

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

DATABASE SYSTEMS. Chapter 5 Entity Relationship (ER) Modelling DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT

Relational Model (cont d) & Entity Relational Model. Lecture 2

Chapter # 4 Entity Relationship (ER) Modeling

A l Ain University Of Science and Technology

A l Ain University Of Science and Technology

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts

Objectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

Entity Relationship Modelling

Chapter 6. Advanced Data Modeling. Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation

Entity Relationship Diagram (ERD): Basics

Data Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell

Entity Relationship Modeling. From Rob and Coronel (2004), Database Systems: Design, Implementation, and Management

Entity-Relationship Model. From Chapter 5, Kroenke book

CMP-3440 Database Systems

Database Management System 6 ER Modeling...

More on the Chen Notation

Multiple Choice Questions

Represent entities and relations with diagrams

Advance Database Management System

MTAT Introduction to Databases

LECTURE 3: ENTITY-RELATIONSHIP MODELING

4. Entity Relationship Model

Review -Chapter 4. Review -Chapter 5

System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar

The Entity-Relationship Model. The Entity-Relationship model. The ER model. The Entity-Relationship model. E-R Model Constructs. E-R Model Constructs

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e

Chapter 2 Conceptual Modeling. Objectives

The Entity Relationship Model

Topic 5: Mapping of EER Diagrams to Relations

The entity is an object of interest to the end user. entity correspond to the table not to a row- in the relational environment.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

Conceptual Database Design (ER modeling) Chapter Three

Chapter 2 ENTITY RELATIONSHIP MODEL

Agenda: Understanding Relationship Types Degree and Cardinality with Examples

Chapter 1: The Database Environment

Unit 2 - Data Modeling. Pratian Technologies (India) Pvt. Ltd.

Fundamentals, Design, and Implementation, 9/e Copyright 2004 Database Processing: Fundamentals, Design, and Implementation, 9/e by David M.

Conceptual Data Modeling


Introduction to modeling. ER modelling

course 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018

Discussion Focus. Figure 1

Lecture3: Data Modeling Using the Entity-Relationship Model.

Chapter 3 Database Modeling and Design II. Database Modeling

ER Model. Objectives (2/2) Electricite Du Laos (EDL) Dr. Kanda Runapongsa Saikaew, Computer Engineering, KKU 1

II. Data Models. Importance of Data Models. Entity Set (and its attributes) Data Modeling and Data Models. Data Model Basic Building Blocks

Unified Modeling Language (UML)

Module 2 : Entity-Relationship Model 15

COMP102: Introduction to Databases, 9.1

Entity Relationship (ER) Modeling

Database Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015

Objectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis

E-R Model. Hi! Here in this lecture we are going to discuss about the E-R Model.

Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

Entity-Relationship Model

Data Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005.

Data about data is database Select correct option: True False Partially True None of the Above

ER-to-Relational Mapping

Data and Process Modeling

Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis

DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL. 1 Powered by POeT Solvers Limited

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

Fundamentals of Design, Implementation, and Management Tenth Edition

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010

Full file at Chapter 2: Foundation Concepts

Chapter 17. Methodology Logical Database Design for the Relational Model

IS 263 Database Concepts

Related download: Instructor Manual for Modern Database Management 12th Edition by Hoffer Venkataraman Topi (Case studies included)

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

CS3200 Database Design Spring 2018 Derbinsky. Entity-Relationship (ER) Diagrams. Lecture 7

Information Technology Audit & Cyber Security

Database Management System CS403 Lecture No 1 Database definitions: 1 A shared collection of logically related data, designed to meet the information

Relational Database Components

Chapter Outline. Note 1. Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

Intro to DB CHAPTER 6

Chapter 7: Entity-Relationship Model

MIS Database Systems Entity-Relationship Model.

ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1

Definition. 02. Data Modeling. Example ABC Company Database. Data Modeling Importance

Topic 2 Discussion Topic: Enhanced Entity Relationship Concepts. Conceptual Design: Enhanced Entity Relationship Model

ER to Relational Mapping

Data Modeling Using the Entity-Relationship (ER) Model

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot

Conceptual Data Modeling and the Entity- Relationship Model. Department of Computer Science Northern Illinois University September 2014

DATABASE SYSTEMS CHAPTER 2 DATA MODELS 1 DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems

Entity Attribute STUDENT TABLE tuples single domain

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling

System Analysis & design

L12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018

Transcription:

Objectives Computer Science 202 Database Systems: Entity Relation Modelling To learn what a conceptual model is and what its purpose is. To learn the difference between internal models and external models. To learn how internal and external models serve the database design process. To learn how relationships between entities are defined and refined, and how such relationships are incorporated into the database design process. To learn how ERD components affect database design and implementation. To learn how to interpret the modelling symbols for the four most popular E-R modelling tools. To learn that real-world database design often requires you to reconcile conflicting goals. 1 2 What is Modelling? Modelling is the process of creating a graphical representation of the database structures, and entities Creation of a visual representation of data which cannot otherwise be seen Visual models are often easier to understand The Data Model Outcome of the data modelling process Produces a relatively simple graphical representation of the complex real-world data types within the DBMS 3 4 Degrees of Abstraction When creating models various levels of abstraction can be used Conceptual Internal External Physical Conceptual Global view of data Very high-level overview often used by management Basis for the Identification and description of the main objects about which data will be stored Platform independent 5 6

Internal Used once DBMS software has been selected (often software specific) Adaptation of the conceptual model to the requirements/constraints of the DBMS Particularly important for Network and Hierarchical databases External The view of data structures, which users and applications will see Makes use of table views (SQL/RDBMS) Often a subset of the internal data views Ensures Security constraints Aids in application development 7 8 Physical This is the lowest level of abstraction Dependant on both software and the underlying hardware Creation of physical storage containers (DB volumes) Physical layout can be very important for performance. The Entity Relationship Model E-RM is used for representing the conceptual view of data Consists of Entities Corresponds to the entire table Rows are instances of a physical entity Attributes Primary key attribute's) are indicated by being underlined Relationships 9 10 E-RM: Attributes A characteristic of an entity something that you want to know about an entity Each attribute has a domain the range of possible values which can be assigned to it ERM: Attribute types Simple Cannot be subdivided ( e.g. Age, gender) Composite Can be broken into further components e.g. address Box, Town, postal code Single valued An attribute of which there can be only one (e.g. ID number) Multi-valued May have many different values (e.g. phone number) Derived Attribute value is derived by a formula based on other attributes 11 12

ERM Representations STUDENT( STU_LNAME,STU_FNAME,STU_INITIAL STU_E_MAIL, STU_PHONE) Relationships An association between entities Entities are participants in a relationship Relation is bidirectional Relation is usually read from left to right Connectivity describes the classification 1:1, 1:M, M:N Cardinality The number of entity occurrences associated with a single occurrence of the related entity 13 14 Cardinality and Connectivity Relationship Strength Existence dependence An Entity s existence is dependant on related entities Existence-independent independent entities can exist apart from related entities DEPENDENT has existence relation to EMPLOYEE Weak (non-identifying) One entity is existence-independent 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 15 16 Relationship Participation Relationship Participation Mandatory Occurrence of Entity A requires a corresponding occurrence in related Entity B If a an optional symbol is omitted form an ERD relationship is mandatory Optional Occurrence of Entity A requires a corresponding occurrence in related Entity B Indicated on ERD by using a small circle on the optional side of the relationship 17 18

Relationship Degree Relationship Degree: CHEN Determined by the number of associated entities Unary Single entity with a recursive relation to itself Binary Two associated entities Ternary Three associated entities 19 20 Relationship Degree: Crow s Foot These are use for bridging between entities in an M:N relationship Composed at a minimum of the primary keys of both entities in the M:N relation Reduced the M:N relation to two 1:M relations 21 22 23 24

Entity Super types & Subtypes Generalization hierarchy Depicts relationships between higher-level supertype and lower-level level subtype entities Supertype has shared attributes Subtypes have unique attributes Disjoint relationships Unique subtypes Non-overlappingoverlapping Indicated with a G Overlapping subtypes use Gs Symbol 25 Generalization Hierarchy with Overlapping Subtypes 26 ERD Development Completed ERD Developing an ERD is an iterative process 1. General outline of organisational operation developed 2. Basic Graphical ER model created 3. Modifications made to ER to include new entities as the diagram and relationship is refined Continue with refinement until DB designers and users agree on output 27 Final outcome of the worked example On pages R&C pages 149-157 R&C page 157 Fig 3.52 28 Challenge of Database Design Database must conform to organisation design standards High-speed processing may require design compromises for performance reasons Quick responses may be a overriding design goal Other concerns Security Performance Shared access Integrity 29