Академический Документы
Профессиональный Документы
Культура Документы
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
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!
A physical design for storing data A database design Database table definitions Object specification
Entity A real world thing or an interaction between 2 or more real world things. Relationship How and why entities depend on each other (the relationship) and what that relationship is (the cardinality of the relationship). Attribute The atomic pieces of information that we need to know about entities.
Attributes
The atomic pieces of information that we need to know about entities Customer (entity)
No (attribute) 10 67 Name (attribute) Fred Bloggs Freda Jones (instance) (instance)
Sale
Customer No Product No Date
10
67
101
452
21/2/2020
22/2/2020
Product
No 101 452 Name Flange Blitwort Price 123.00 34.50
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:
Purchases
Sale
Customer No 10 67 Product No 101 452 Date 21/2/2020 22/2/2020
Purchased via
Product
No 101 452 Name Flange Blitwort Price 123.00 34.50
The following has worked during real-life project and is a proven starting point
Define attributes
The (non-functional) requirements for relationships is the cardinality already defined in the diagram
Minor Exercise
I own a florists shop called My Florist. I want to start emailing reminders to customers when special occasions are due for which they have brought flowers in the past for example a spouses birthday.
We have already got a data model of the requirements so lets define the data for Customer.
An answer
Entity
Customer
Definition
Someone who purchases flowers from My Florist
Max Volume
9900 (3 years, 302 working days per year, 15 customers per day)
Examples
Fredbloggs@hotmail.com
Relationship
Customer needs Reminder
Definition
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.
Attribute Definition
Customer.Email Address The email address given by the customer at the point of sale of flowers for a Special Occasion
Rules Example
None Fredbloggs@hotmail.com
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
Major Exercise
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 Dont worry about completing the exercise
and finally
Any questions? Further resources Feedback Thank-you!