44220: Database Design & Implementation Conceptual Data Modelling Ian Perry Room: C49 Tel Ext.: 7287

Slides:



Advertisements
Similar presentations
44220: Database Design & Implementation ER Diagramming
Advertisements

Entity-Relationship (ER) Modeling
Chapter 3 Data Modeling Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
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.
Chapter 4 Entity Relationship (E-R) Modeling
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Entity-Relationship Model and Diagrams (continued)
Entity-Relationship Modelling Introduced by Chen in 1976 The ER Model is used to construct the conceptual data model – independent of DBMS Most widely.
Chapter 3: Modeling Data in the Organization
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
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.
Entity/Relationship Modelling
Data Modeling 1 Yong Choi School of Business CSUB.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Ch5: ER Diagrams - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
44220: Database Design & Implementation Review & Assignment 1
Chapter 3: Modeling Data in the Organization
44220: Database Design & Implementation Logical Data Modelling Ian Perry Room: C48 Tel Ext.: 7287
1 Data Modeling : ER Model Lecture Why We Model  We build models of complex systems because we cannot comprehend any such system in its entirety.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Database Systems: Design, Implementation, and Management Ninth Edition
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Chapter 2: Modeling Data in the Organization
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Concepts and Terminology Introduction to Database.
44220: Database Design & Implementation Review & Assignment 2 Ian Perry Room: C49 Tel Ext.: 7287
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Chapters 15 &16 Conceptual and Logical Database Design Methodology.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Database Fundamentals Lecture 4 Useful website for MySQL download language.com/workshops/Default.asp ?workshop=21.
44220: Database Design & Implementation Modelling the ‘Real’ World Ian Perry Room: C41C Ext.: 7287
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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.
Database Systems Module Review
44220: Database Design & Implementation Review & Assignment 2 Ian Perry Room: C41C Tel Ext.: 7287
Database Systems ER Diagramming Tutor:Ian Perry Tel: Web:
44271: Database Design & Implementation Logical Data Modelling (Avoiding Database Anomalies) Ian Perry Room: C49 Tel Ext.: 7287
MIS2502: Data Analytics Relational Data Modeling
Lesson 4: The Relational Model. Lesson Overview Database Design Entities Relationships E-R Diagrams.
INTRODUCTION TO DATA MODELING CS 260 Database Systems.
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
Database Systems Avoiding Database Anomalies Tutor:Ian Perry Tel: Web:
Tutorial 2 Data Modelling. 3 Terminology & Notation(1) An entity is an object about which the system needs to hold information –Customer, Student, Course.
DBMS ER model-2 Week 6-7.
44271: Database Design & Implementation Physical Data Modelling Ian Perry Room: C49 Tel Ext.: 7287
Database Systems Logical Data Modelling Tutor:Ian Perry Tel: Web:
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
Lecture 5 Entity Relationship Modeling
The Relational Model Lecture #2 Monday 21 st October 2001.
44220: Database Design & Implementation Introduction to Module Ian Perry Room: C41C Ext.: 7287
Entity/Relationship Modelling
Entity-Relationship Model
Entity-Relationship Model and Diagrams (continued)
MIS2502: Data Analytics Relational Data Modeling
MIS2502: Data Analytics Relational Data Modeling 2
Presentation transcript:

44220: Database Design & Implementation Conceptual Data Modelling Ian Perry Room: C49 Tel Ext.:

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Remember the ‘Stack’ We MUST begin by developing a Conceptual Data Model.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Conceptual Data Model? A Conceptual Data Model is an abstraction which reflects the requirements of a ‘real- world’ system, by definition of: Objects of Interest Semantics Constraints Need a ‘language’ to explore & explain our view of a ‘real-world’ situation: Ideally this ‘language’ should be compromise free and will ‘work’ using any Software & Hardware. Useful choice is that of ER Modelling: Need to identify Entities, Attributes & Relationships.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling ‘Facts’ about the ‘Real-World’ Customers place orders. Patients take medication. Lecturers teach students. Students attend lectures: Some students attend all lectures. Some students attend some lectures. Some students attend no lectures!

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling ‘Facts’ need to be Expressed An ER Model lets us do so in way that: Encourages thorough Analysis. Can be applied to ALL Database Theories. Is independent of Software & Hardware. Provides an effective means of Communication. For an ER Model we must determine: the Objects of Interest. their Characteristics. their Associations.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Entities/Attributes/Relationships Entities - Objects of Interest (Nouns): Customer, Supplier, Order, Employee, Stock, etc. Attributes - Characteristics (Adjectives): Customer - Name, Address, etc. Stock - Description, Price, Quantity, etc. Relationships - Associations (Verbs): Customer ‘places’ Order. Supplier ‘supplies’ Stock.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Entities = Objects of Interest Must play a necessary role in the business system: so, we must make decisions about what to include and what to exclude. Each Entity MUST have name that is: a noun; is singular; is succinct; and is meaningful. Each Entity MUST be described by; one-or-more Attributes.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Attributes = Characteristics Attributes describe an Entity. Must have Meaningful Names: NOT; Field 1, Field 2, etc. Should be Atomic: NOT; Address, Invoice, etc. For example: House No., Street, Town, County, Post Code, etc. Invoice No., Customer ID, Invoice Date, etc.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Entities & Attributes Each Entity requires an Attribute Identifier, which can be defined as: the minimum number of Attributes that, when given value(s), uniquely identify one Entity Occurrence from another. these are often called ‘key’ Attributes. Consequently: it is mandatory that values exist for all of these ‘key’ Attributes.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Entities & Attributes (Example 1) Entity Attributes Key Attribute Invoice Jan Jan _ Jan _ Jan Jan _0001 CustomerIDPaymentDateInvoiceDateInvoiceNo

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Entities & Attributes (Example 2) Entity Attributes Key Attributes ModuleNameLevelCourseCodeStaffNo Database Design1ITB234 Marketing1ITB346 Marketing2ITB Research Methods IS PlanningM254 Module 2

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Relationships = Associations A Relationship MAY OCCCUR; between any TWO Entities. Each Relationship REPRESENTS; the possible existence of an Association between TWO Entities. Every Relationship SHOULD be described : by Degree (a quantitative association) by Type (a qualitative association)

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Quantitative = Degree Identifies the number of Entity Occurrences that might be on each side of a Relationship. May be simple: one_to_one (1:1), e.g. Wife - Husband one_to_many (1:M), e.g. Lecturer - Student May be complex: many_to_many (M:M), e.g. Product – Customer MOST ‘real-world’ Relationships are M:M, however: Logical & Physical Data Models CAN NOT handle such complex Relationships.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Qualitative = Type MUST be a succinct & meaningful verb (or verb-phrase), e.g.: Wife is married to Husband MOST Relationships are bi-directional, e.g.: Lecturer bores Student Student bored by Lecturer Product bought by Customer Customer buys Product

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Example Relationships (by Degree & Type) HusbandWife is married to One-to-One 11 LecturerStudent bores => One-to-Many 1M <= bored by ProductCustomer bought by => Many-to-Many MM <= buys

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Decomposing Complexity Try to simplify any complex ‘real-world’ M:M Relationships that you discover into 2 x 1:M Relationships: This results in the creation of an new ‘artificial’ linking Entity composed of the identifiers (i.e. the ‘key’ Attributes) from either side of the original Many-to-Many relationship. ALWAYS attempt to simplify any complex (i.e. M:M) Relationships at the Conceptual Data Modelling stage: you will have to ‘solve’ these ‘problems’ when you move on to the Logical Data Model.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling An Example of Decomposition CustomerKeyProductKey CustomerKey ProductKey ProductCustomer bought by => 1 x Many-to-Many MM <= buys ProductCustomer 2 x One-to-Many Prod/Cust 1M1M <= buysbought by => NB.The Relationship is still between the two ‘real-world’ Entities; the ‘artificial’ Entity is just there to solve a problem.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling Conceptual Data Modelling Process Identify ALL of the relevant Entities: must play a necessary role in the business system. Identify those Attributes that adequately describe each Entity: remember to choose ‘key’ attribute(s). Identify the Relationships between Entities: determine the Degree of each Relationship. determine the Type of each Relationship. attempt to decompose any many-to-many Relationships that you have identified.

Ian PerrySlide : Database Design & Implementation: Conceptual Data Modelling This Week’s Workshop In this Workshop we will continue to explore some of the design decisions you must make in order to begin to construct a Conceptual Data Model of the ‘real world’. Working alone, or in a small team, consider the following ‘things’ that exist in the ‘real’ world. University, Bank, Sports Activity. For each of the above; list the Entities, list likely Attributes that ‘describe’ each Entity, and identify ‘Key’ Attributes. DON’T arrive at the workshop un-prepared!