Académique Documents
Professionnel Documents
Culture Documents
Data
Modeling
Copyright 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Learning Objectives
3-2
LO# 1
3-3
LO# 1
Structure Models
Describe the data and information structures inherent in
a business process.
Create a blueprint for the development of a relational
database to support the collection, aggregation, and
communication of process information.
In the past, hierarchical databases were used. You
needed to know information at the top of a hierarchy
prior to being able to access data at a low level.
An example of a hierarchical database is the White Pages phone
book. If you did not know the city in which the person resides,
you cannot locate the information.
Relational databases are more powerful in that they allow the
user to search on related information regardless of where in the
hierarchy you are searching.
Facilitate the use of databases after they are
implemented.
3-4
LO# 1
Relational Databases
Relational databases are a very important tool for business and accountants.If
properly and fully implemented they can provide an integrated view of the
business.
Large Enterprise Resource Planning systems (ERP) and usually designed with a
modular structure with each module controlling the key business functions within
that business cycle.
The Financing and Controlling module (on which
the accountants rely for integrated reporting of
financial statements, and managerial
accounting information)
is at the center of these modules.
3-9
LO# 2
3-10
LO# 2
3-11
LO# 2
3-12
LO# 2
A simple example
3-13
LO# 2
R E A
3-14
LO# 2
3-16
LO# 3
Multiplicities
Cookies (inventory items) can be
sold in a minimum of 0 sales and a
maximum of many sales.
3-18
LO# 2
Attributes
Attributes are data elements that describe the
characteristics of instances in a class (or rows in a
table)
The full specification of attributes, i.e., a data
dictionary, would also include data type, default value
(if any), constraints on the value (such as minimum
and maximum possible values), and other descriptive
information
Attributes include the primary keys that uniquely
define instances of the class, foreign keys that
support the links between classes shown in the
associations, and other data elements for each class
Attributes will be specified in a table listing that
accompanies each class diagram
3-19
LO# 2
Primary Keys
3-20
LO# 2
Primary Keys
Should you use social security numbers as
primary keys?
No, since there are legal restrictions and not
everyone has a social security number (so the
primary key might by NULL)
Should you use peoples names as primary keys?
No, since names are not unique
Should you use phone numbers as primary keys?
No, since a persons phone number may change
over time
Should you assign primary keys using sequential
numbers?
Yes, since it is easier to identify gaps and you
control the number
3-21
LO# 2
Foreign Keys
An attribute or combination of attributes that
allows tables to be linked together
Implements the link between classes (and
resulting tables) shown by the associations
In the following model, the primary key of the
PERSON class would become a foreign key in the
AUTO class to implement the association
3-22
LO# 2
3-23
LO# 2
3-24
LO# 2
3-25
LO# 2
Other Notation
3-26
LO# 2
3-27
LO# 4
3-28
LO# 4
3-29
LO# 4
3-30
LO# 3
3-33
LO# 4
Business Rules
3-34
LO# 5
3-35
LO# 5
3-36