ims 5024 data modelling (1). ims 5024 lecture 32 content individual assignment date pitfall...

24
IMS 5024 Data Modelling (1)

Post on 18-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

IMS 5024

Data Modelling (1)

Page 2: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

IMS 5024 Lecture 3 2

Content

Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data modelling Tools/Techniques used in data modelling Place in ISD Evaluation of data modelling Reading list

Page 3: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Date for the individual assignment Two dates appear in the hand out:

– 23 August 2001– 27 August 2001 (it also wrongly states that

it is a Friday)

What will it be!!!

–27 August 2001 at 17h00!!

Page 4: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Class assignment

What is this about?

What conventions/rules are used?

What does it depict?

Where would this fit into ISD?

Page 5: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Data modelling describe:

Structure Meaning Relationship

Of Data

Page 6: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Data modelling help us to grasp:

Static Data in the organisationFundamental building block of

the systemTwo perspectives (Process and

Data)

Page 7: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Techniques used in Data modelling Entity relationship diagrams Normalisation Data Dictionary

What difference? Use both?

Page 8: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Entity

Entity – things of interest to the business

Identification of an entity is subjective Entities can be:

• Real eg product• Abstract eg Quota• Event remembered eg sale• Role played eg employee

Employee

Page 9: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Relationship

Relationship Between entities

Cardinality (eg. One to many, one to one ect.)

Degree of relationship (Unary, Binary, Ternary)

DepartmentEmployee

Page 10: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Examples of Cardinalities

PATIENTHISTORY

PATIENT

PROJECT

EMPLOYEE

PERSON

Mandatorycardinalities

Optional and mandatorycardinalities

Optionalcardinalities

Has

Is assigne

d to

Is married

to

Page 11: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Relationship Cardinality Summary

Mandatory 1 cardinality

Many cardinality (1,2 …m)

Optional (0 or 1) cardinality

Optional (0 or many) cardinality

Page 12: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Unary Relationship

Also called a recursive relationship

PERSON EMPLOYEE

One to manyOne to one

Ismarried

to

Manages

Page 13: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Binary Relationship

A binary relationship is a relationship between instances of two entity types.

PROJECT

EMPLOYEE

SALESORDER

CUSTOMER

ITEM

SUPPLIER

One to one One to many Many to many

Leads PlacesSupplie

s

Page 14: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Ternary Relationship A ternary relationship is a relationship

between instances of three entity types.

PART

suppliesVENDOR CUSTOMER

Page 15: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Attributes

What we want to know about the entity or a relationship

Types:– Derived,– multi-valued, – Composite,– Simple

Page 16: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Example of attributes

EMPLOYEE

Emp-no

Name Address

Skill

Page 17: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Supertypes and subtypes

Benefits:– Presentation– Creativity– Communication– Classifying common patterns– Divide and conquer

Generalisation vs Specialisation

Page 18: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Example of super- and subtypes

EMPLOYEE

Emp-no

Name Address

Skill

HOURLYEMPLOYEE

SALARIEDEMPLOYEE

CONSULTANT

Contract numberStock optionHourly rate

Annual salary

Billing rate

Page 19: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Thinking in Data modelling

Hard Vs Soft ?? Perspective

– Objective vs Subjective– Nature of the organisation

Page 20: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Evaluation of Data modelling

Problem oriented Product oriented

Concep-tual

Structured analysis

Entity relationship modelling

Logical construction of systems

Modern structured analysis

Object oriented analysis

Structured design

Object oriented design

Formal PSL/PSA

JSD

VDM

Levels of abstraction

Stepwise refinement

Proof of correctness

Data abstraction

JSP

Object oriented programming

Page 21: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Advantages of Data modelling

Data model is not computer oriented (agree??) Model understandable by technologist and

users Does not show bias UoD can vary (whole organisation or

department) Readily transformable into other models Different data analysis techniques Data modelling is rule-based

Page 22: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Disadvantages

Does not encourage/support user participation

Your view on the organisation –people or data

The idea that the model is THE model Subjective view One-side ito data Others??

Page 23: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Process modelling view of ISD

Development group

Objectives

Environment

Object system

ObjectsystemChange

process

Hirschheim et al see reading list

Page 24: IMS 5024 Data Modelling (1). IMS 5024 Lecture 32 Content Individual assignment date Pitfall revisited Group assignment Class assignment Nature of data

Reading for next week

Simsion, G. (1994). Data modeling essentials: Analysis, Design, and Innovation. Van Nostrand Reinhold, USA. Chapter 2, 7 and 10.