Tutorial 3. This tutorial went through how to convert multiplicity numbering used in UML modelling to ERD, and vice versa. In the exam and assignments,

Slides:



Advertisements
Similar presentations
ER Modeling Case Studies
Advertisements

Chapter 6: Entity-Relationship Model (part I)
Database Design The process of finding user requirement
ER Modeling Case Studies
ER Modeling Case Studies
1 Assignment 4 Map entities with relationships to relational schemas. Use DBDL to describe the table schemas.
Data Modeling (CB 12) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems by Connolly & Begg, © Addison Wesley 2002)
ENTITY RELATIONSHIP MODELLING
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 © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Translating from ER to Relationship Schema Adapted from Juliana Freire.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Information Resources Management February 6, 2001.
Entity-Relationship Model and Diagrams (continued)
Information Resources Management January 30, 2001.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Systems Analysis and Design in a Changing World, 6th Edition
1 Data Modelling Which data to include in the database.
Chapter 2 Modeling Data in the Organization
Entity/Relationship Modelling
Trisha Cummings.  Most people involved in application development follow some kind of methodology.  A methodology is a prescribed set of processes through.
ER Modeling Case Studies
Practical tips for creating entity relationship diagrams (ERDs) Chitu Okoli Associate Professor in Business Technology Management John Molson School of.
DBS201: Entity Relationship Diagram
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
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.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
1 Desing Database Systems. 2 Hierarchy database The structure of data is like a tree Parent-children relationship Pointers Central depot West depotEast.
ITEC 3220M Using and Designing Database Systems Instructor: Prof. Z.Yang Course Website: 3220m.htm
CSE 441: Systems Analysis & Design
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Dr. Ahmad R. Hadaegh A.R. Hadaegh California State University San Marcos (CSUSM) Page 1 Entity Relational Diagram (ERD) Modeling This particular lecture.
Slide content original, slide layout from Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
Entity Relationship Diagram. Introduction Definition: Entity-relationship diagram is a data-modeling technique that visualises entities, the attributes.
Description and exemplification of entity-relationship modelling.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
 What is an Entity-Relationship Diagram? An entity-relationship diagram (ERD) is a snapshot of data structures. ERDs show entities in a database and.
In this session, you will learn to: Map an ER diagram to a table Objectives.
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Data Modeling Using the Entity-Relationship (ER) Data Model.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Chapter 4 Extended Entity-Relationship (EER)Model Incorporates Set-subset Relationships Incorporates Generalization Hierarchies Constraints: Coverage Constraints:
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
Data Modeling AND ER MODELS.
Chapter 4_part2: The Enhanced Entity-Relationship (EER) Model.
A short revision on entity- relationship modelling.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
COP Introduction to Database Structures
Entity/Relationship Modelling
Entity-Relationship Model
Entity-Relationship Model
Assignment 4 Map entities with relationships to relational schemas.
Technical Module A Data Modeling Definitions
Chapter 2 Modeling Data in the Organization
Database Modeling using Entity Relationship Model (E-R Model)
Presentation transcript:

Tutorial 3

This tutorial went through how to convert multiplicity numbering used in UML modelling to ERD, and vice versa. In the exam and assignments, use ERD please! We also discussed how to map ERD into schema using Assignment 2 Q2 as an example.

Multiplicity of Relationship At least m, at most n (m.. n) – Sometimes, you may have (0.. n), which means the two entities does not have to be related all the time. * indicating any number, at least m is (m.. *). * is also a short hand for (0.. *). 1 is a short hand for (1.. 1). Default is 1 to 1. m.. n 0.. n m.. * 0.. * (*) (1)

One to One Many to One Many to Many Complete (full participation) – Complete 1-1 – Complete M-1 – Complete M-M One R Many R One Many R One R Many R One Many R keykey Entities participate at most once in the relationship would specify key constraints, represented with an arrow. Always pointing from the entities to relationships. In the case of M-1, it is always from Many table pointing to the relationship. ERD Entities participate at least once in the relationship would specify full participation constraints.

Types of relationships - UML One to One Many to One Many to Many Complete (full participation) – Complete 1-1 – Complete M-1 – Complete M-M Entity_A Attribute1:P K Attribute2 …. Entity_B Attribute1:PK Attribute2 …. relationship * * * Entity_A Attribute1:P K Attribute2 …. Entity_B Attribute1:P K Attribute2 …. relationship *

Question – Assignment 2 Q2, Q3 Draw and Entity-Relationship Diagram for the following scenario, a real estate firm employs personnel and lists for sale properties that have owners. The following describes the organisation: – The firm is made up of several sales offices in various locations. Attributes of the sales office include an office number (identifier) and a location. – Each sales office has one or more employees. Each employee has an employee id (identifier) and a name. Each employee can only be assigned to one sales office. – Each sales office has one of its assigned employees designated as the manager of that office. – The firm lists properties for sale. Each property has a property id (identifier), and location information consisting of a street address, the city, state, and post code. – Each property is exclusively listed with one sales office. Each sales office may have many properties listed, including none. – Each property has one or more owners. The percentage of ownership is an attribute of the relationship between an owner and the property. Each owner has an owner id (identifier) and a name. An owner may own one or more properties.

Attribute or Entity?

Model Answer Entities participate at least and at most once – exactly once in the relationship are good candidates for the relationship to merge into as single tables.

Direct Translations – 8 Tables (both entities are relationships) After considering key and participation constraints – 5 Tables

List relationship Works-in relationship Manages relationship