Bite sized training sessions: Data Modelling – Part 2 of 2 Data Definitions.

Slides:



Advertisements
Similar presentations
Copyright Irwin/McGraw-Hill Data Modeling Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Advertisements

Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Modeling the Data: Conceptual and Logical Data Modeling
PROCESS MODELING Transform Description. A model is a representation of reality. Just as a picture is worth a thousand words, most models are pictorial.
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
Announcements n Difference between “excused” and “absent” n Office hours next week May not be here Monday Tuesday: 1:00 to 2:00 Wednesday: 10:00 to 11:00.
Entity-Relationship Model and Diagrams (continued)
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Bite sized training sessions: Process Modelling – Part 1 of 2 Process Model Diagrams.
Bite sized training sessions: Business And Functional Requirements.
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,
Practical tips for creating entity relationship diagrams (ERDs) Chitu Okoli Associate Professor in Business Technology Management John Molson School of.
1 Database Requirements and Design. 2 DATA PEOPLE PROCEDURES HARDWARE SOFTWARE The Product: a working system.
Modeling Systems Requirements: Events and Things.
Bite sized training sessions: Non-Functional Requirements.
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
Module 2: Conceptual Data Modeling with ERD
Creating Entity Relationship Diagrams. Identify data stores The data stores are easy to identify if you have already created a data flow diagram If you.
Bite sized training sessions: Data Modelling – Part 1 of 2 Data Model Diagrams Feb 2011 Prepared by Guy Beauchamp Group Projects & IT.
Entity Relationship Diagrams
Database Design Using the REA Data Model
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
1 State Records Center Entering New Inventory  Versatile web address:  Look for any new ‘Special Updates’ each.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Bite sized training sessions: Scope – Solution & Project.
Fundamentals of Relational Database Operations
Requirements Documentation CSCI 5801: Software Engineering.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Implementing an REA Model in a Relational Database
Information Systems & Databases 2.2) Organisation methods.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
An Introduction to Data Modelling Entity Relationship Modelling Avin Mathew Nov 2010.
1. Objectives At the end of this chapter you should be able to:  Discuss the use and features of a data model  Define the terms entity and attribute.
1 IRU – database design part one Geoff Leese September 2009.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Description and exemplification of entity-relationship modelling.
Exam 1 Review. Bureau of Labor Statistics, U.S. Department of Labor, Occupational Outlook Handbook, Edition, Computer and Information Systems.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Bite sized training sessions: Process Modelling – Part 2 of 2 Process Model Documentation.
UML’s StateChart FSM, EFSM in UML Concurrent states Tool support.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
Mr C Johnston ICT Teacher
Link tables and keys Access/IPS Walsall College of Arts & Technology.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Logical Database Design and the Relational Model.
Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
Order Database – ER Diagram Prepared by Bryan Borcher Spring 2014.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
CH 10 DB Application Design n 10.1 Functions n 10.2 Case Application n 10.3 Creating, Reading, Updating, Deleting View n 10.4 Form Design n 10.5 Report.
Announcements n Difference between “excused” and “absent” n Office hours next week May not be here Monday Tuesday: 1:00 to 2:00 Wednesday: 10:00 to 11:00.
Database Design Chapters 17 and 18.
Let try to identify the conectivity of these entity relationship
Implementing an REA Model in a Relational Database
Database Requirements and Design
Entity-Relationship Model and Diagrams (continued)
Data Modelling Introduction
Entity relationship diagrams
Database Modeling using Entity Relationship Model (E-R Model)
Guide to Modeling Keys to E-R diagrams.
Database Management system
Guide to Modeling Keys to E-R diagrams.
Information system analysis and design
Presentation transcript:

Bite sized training sessions: Data Modelling – Part 2 of 2 Data Definitions

Objectives To understand –What is a data model … and what it is not! –Why do data modelling To be able to –Read a data model –Build a data model –Critically review a data model

What is a data model? Specification of the data that is required in order for –The solution to meet it’s objectives –Processes to be able to run A data model comprises: –A diagram showing the required data dependencies –A set of data definitions required for each attribute on the diagram Also referred to as: –Logical Data Model (LDM) –Entity Model –Entity Relationship Diagram (ERD) –Data Dictionary –Object Model –Class Diagram –Data Structure –…etc!

What a data model is not A physical design for storing data A database design Database table definitions Object specification

Data Model Components EntityA real world thing or an interaction between 2 or more real world things. RelationshipHow and why entities depend on each other (the relationship) and what that relationship is (the cardinality of the relationship). AttributeThe atomic pieces of information that we need to know about entities.

Attributes No (attribute)Name (attribute) 10Fred Bloggs(instance) 67Freda Jones(instance) Customer (entity) Customer NoProduct NoDate /2/ /2/2020 Sale NoNamePrice 101Flange£ Blitwort£34.50 Product “The atomic pieces of information that we need to know about entities”

Primary Keys A special kind of attribute, set of attributes and/or relationships Is the way for the business to identify 1 unique instance of an entity Certain rules apply to a primary key: Must not be repeated within an entity Once assigned can never be updated (only deleted) Must be the way that the business uniquely identify an instance of an entity No (attribute)Name (attribute) 10Fred Bloggs(instance) 67Freda Jones(instance) Customer (entity)

Primary Keys are the navigation method for relationships Purchases Purchased via No (attribute)Name (attribute) 10Fred Bloggs(instance) 67Freda Jones(instance) Customer (entity) Customer NoProduct NoDate /2/ /2/2020 Sale NoNamePrice 101Flange£ Blitwort£34.50 Product

5 Data Modelling “No-No”s 1.No repeating attributes on entities E.g. On a Customer entity “1 st child name”, “2 nd child name”… 2.No attributes on entities that do not depend on the primary key E.g. On Customer entity “order date” The following should have been addressed via entity relationship diagram: 3.No “Many to Many”s between entities 4.No “one to one”s between entities (usually) 5.No circular relationships between entities (usually)

A word about data definitions There is no definitive set of information to define data There is some basic information that will always be needed Do what you need to do in order to define the data The following has worked during real-life project and is a proven starting point

Process for defining the data For each entity on the diagram –Define the entity –Define it’s relationships –Identify non-key attributes from Process specs User input Your analysis of requirements …but always verify they are in scope! –Define attributes

Data definitions - Entities what the entity really is – ‘legal’ definition Example: the “Sale” entity is a record of when a Product was purchased by a Customer The (non-functional) requirements the business has for entities –Attributes example: Date, Quantity –Retention period example: 6 years – justification: legal requirement –Max volume (max number of instances) Example: 60,000 based on average number of sales per year of 10,000 x retention period –Examples (not a requirement but very useful) Example: On 28/4/2011 a flange was sold to Fred Bloggs

Data definitions - Relationships What the relationship really is – ‘legal’ definition –Example: For the relationship “Customer purchases Sale” – A Customer agrees to make immediate and full payment for a Product which is given to the Customer at the time the Sale is made. The (non-functional) requirements for relationships is the cardinality – already defined in the diagram

Data definitions - Attributes What the attribute really is – ‘legal’ definition –Example: On entity Sale the attribute “Date”: the day and time the Sale was agreed with the Customer The (non-functional) requirements the business has for them –Data type Example: Numeric –Size Example: 12 –Domain – not all attributes will have a domain Example: Timestamp YYYYMMDDHHMM –Rules – not all attributes will have a rule(s) Example: Cannot be a Sunday or Bank Holiday and must be between 09:00 and 17:30 and always display as YYYY-MM-DD:HH.MM –Examples (not a requirement but very useful) Example: :10.05

Minor Exercise I own a florist’s shop called My Florist. I want to start ing reminders to customers when special occasions are due for which they have brought flowers in the past – for example a spouse’s birthday. We have already got a data model of the requirements so lets define the data for Customer.

An answer… EntityDefinitionAttributesRetention Period Max Volume Examples Customer RelationshipDefinition Customer needs Reminder AttributeDefinitionData TypeSizeDomainRulesExample Customer. Address Someone who purchases flowers from My Florist Address3 years 9900 (3 years, 302 working days per year, 15 customers per day) The customer has purchased flowers from My Florist for a Special Occasion in the past, so reminders need to be sent just before the anniversary of the event. The address given by the customer at the point of sale of flowers for a Special Occasion Character Unlimited

Major Exercise You are business analysts working for a company called re-Evolution Coffee Houses Ltd You have been given a piece of work – ref handouts You have already produced a data model showing –Entities –Primary Keys –Relationships Define the data entities, relationships and attributes. Suggestion: follow the process for producing a data model diagram 6 slides previously The business users will be available for questions

If you need to make an assumption about business requirements or anything else then document it Time allowed: 45 minutes Deliverable: –Flip chart data definitions –Flip chart assumptions Be prepared to present your data definitions to the other team Don’t worry about completing the exercise Do worry about the quality of what you get through Major Exercise

…and finally Any questions? Further resources… Feedback Thank-you!