Beruflich Dokumente
Kultur Dokumente
C H A P T E R
7 DATA MODELING
AND ANALYSIS
Chapter Map
System Models
Data Modeling
Name of Entity
Betty Arnold
John Taylor
Lisa Simmons
Bill Macy
Heather Leath
Tim Wrench
Na me
.L a s t N a m e
.F irs t N a m e
.M id d le In itia l
A d d re s s
.S tr e e t A d d r e s s
.C ity
.S ta te o r P ro v in c e
.C o u n try
.P o s ta l C o d e
Phone Num ber
.A r e a C o d e
.E x c h a n g e N u m b e r
.N u m b e r W ith in E x c h a n g e
D a te o f B irth
G ender
Race
M a jo r
G r a d e P o in t A v e ra g e
STUDENT
S tu d e n t N u m b e r (P rim a ry K e y )
S o c ia l S e c u r ity N u m b e r (A lte r n a te K e y )
Nam e
.L a s t N a m e
.F irs t N a m e
.M id d le In itia l
A d d re s s
.S tr e e t A d d re s s
.C ity
.S ta te o r P ro v in c e
.C o u n try
.P o s ta l C o d e
Phone Num ber
.A re a C o d e
.E x c h a n g e N u m b e r
.N u m b e r W ith in E x c h a n g e
D a te o f B irth
G e n d e r (S u b s e ttin g C r ite r ia 1 )
R a c e (S u b s e ttin g C rite r ia 2 )
M a jo r (S u b s e ttin g C rite ria 3 )
G ra d e P o in t A v e r a g e
bidirectional
An associative entity is an
entity that inherits its
primary key from more
than one other entity
(called parents).
Nonspecific
relationships
must be
resolved.
Most
nonspecific
relationships
can be
resolved by
introducing
an
associative
entity.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights res
SYSTEMS ANALYSIS AND DESIGN METHODS 5th Edition Whitten Bentley Dittman
MEMBER ORDER
is a
sells
responds to has
MEMBER TRANSACTION
conducted
places
PRODUCT generates
binds
PROMOTION AGREEMENT
features
responds
MEMBER ORDERED PRODUCT to MEMBER
Primary Key
Primary Key
Order-Number [PK1] [FK] places Member-Number [PK1] has
Product-Number [PK2] [FK]
conducted
sold as
PRODUCT binds
generates
Primary Key TRANSACTION
Product-Number [PK1] Primary Key
Transaction-Reference-Number [PK1]
AGREEMENT
is featured as
Primary Key
Agreement-Number [PK1]
TITLE PROMOTION
Primary Key features PROMOTION
Product-Number [PK1] [FK] Primary Key
Promotion-Number [PK2] [FK] Promotion-Number [PK1]
Data-to-Location-CRUD Matrix
. Warehouse
. Warehouse
. Advertsing
Location
San Francisco
. Warehose
. Marketing
Kansas City
Customers
San Diego
. Sales
. Sales
. Sales
. A/R
Boston
Entity . Attribute
Customer INDV ALL ALL SS SS SS SS
.Customer Number R R CRUD R CRUD R CRUD R
.Customer Name RU R CRUD R CRUD R CRUD R
.Customer Address RU R CRUD R CRUD R CRUD R
.Customer Credit Rating X R RU R R
.Customer Balance Due R R RU R R
Order INDV ALL SS ALL SS SS SS SS
.Order Number SRD R CRUD R CRUD R CRUD R CRUD R
.Order Date SRD R CRUD R CRUD R CRUD R CRUD R
.Order Amount SRD R CRUD CRUD R CRUD R CRUD R
Ordered Product INDV ALL SS ALL SS SS SS SS
.Quantity Ordered SUD R CRUD R CRUD R CRUD CRUD
.Ordered Item Unit Price SUD R CRUD CRUD R CRUD CRUD
Product ALL ALL ALL ALL ALL ALL ALL ALL ALL
.Product Number R CRUD R R R R R R R
.Product Name R CRUD R R R R R R R
.Product Description R CRUD RU R R R R R R
.Product Unit of Measure R CRUD R R R R R R R
.Product Current Unit Price R CRUD R R R R R R
.Product Quantity on Hand X RU R R RU R RU