Professional Documents
Culture Documents
Systems Analysis and Design 6
Systems Analysis and Design 6
Systems Analysis and Design 6
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
.Last Name
.First Name
.Middle Initial
Address
.Street Address
.City
.State or Province
.Country
.Postal Code
Phone Number
.Area Code
.Exchange Number
.Number Within Exchange
Date of Birth
Gender
Race
Major
Grade Poin t Average
STUDENT
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.
Generalization Hierarchy
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]
binds TRANSACTION
sold as Primary Key
Transaction-Reference-Number [PK1]
AGREEMENT
Primary Key
Agreement-Number [PK1]
PRODUCT
Primary Key
Product-Number [PK1]
generates PROMOTION
Primary Key
is a is a Promotion-Number [PK1]
MERCHANDISE TITLE
Primary Key Primary Key
Product-Number [PK1] [FK] Product-Number [PK1] [FK] is featured as
PROMOTION TITLE
Primary Key features
is a is a is a Promotion-Number [PK1] [FK]
Product-Number [PK2] [FK]
PRODUCT
Primary Key
Product-Number [PK1]
Non-Key Attributes
"Universal-Product-Code (Alternate Key)" AGREEMENT
Quantity-in-Stock Primary Key
Product-Type Agreement-Number [PK1]
Suggested-Retail-Price Non-Key Attributes
Default-Unit-Price binds Agreement-Expire-Date
Current-Special-Unit-Price Agreement-Active-Date
Current-Month-Units-Sold Fulfillment-Period
Current-Year-Units-Sold Required-Number-of-Credits
Total-Lifetime-Units-Sold
is a is a
PROMOTION
TITLE PROMOTION features Primary Key
Primary Key Promotion-Number [PK1]
is a is a is a Product-Number [PK1] [FK] Non-Key Attributes
Promotion-Number [PK2] [FK] Promotion-Release-Date
AUDIO TITLE VIDEO TITLE GAME TITLE Promotion-Status
Promotion-Type
Primary Key Primary Key Primary Key
Product-Number [PK1] [FK] Product-Number [PK1] [FK] Product-Number [PK1] [FK]
Non-Key Attributes Non-Key Attributes Non-Key Attributes
Artist Producer Manufacturer
Audio-Category Director Game-Category
Audio-Sub-Category Video-Category Game-Sub-Category 3NF Member Services (Entity
Number-of-Units-in-Package Video-Sub-Category Game-Platform Relation Subject Area)
Audio-Media-Code Closed-Captioned Game-Media-Type SA/2001
Content-Advisory-Code Language Number-of-Players Tue May 02, 2000 10:41
Running-Time Parent-Advisory-Code Comment
Video-Media-Type
Video-Encoding Sandra Shepherd
Screen-Aspect
MPA-Rating-Code
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