You are on page 1of 1

Dr. Nenad Jukic, Loyola University Chicago, njukic@luc.

edu

QUESTION: Create a star schema diagram that will enable FIT-WORLD GYM INC. to analyze their revenue.
− The fact table will include: for every instance of revenue taken – attribute(s) useful for analyzing
revenue.
− The star schema will include all dimensions that can be useful for analyzing revenue.
− The only data sources available are shown bellow.
SOURCE 1
“FIT-WORLD GYM” Operational Database: ER-Diagram and the tables based on it (with data)
MembId MshpPrice
MembName
Date MshpName

MembZip
MEMBER Pay s MEMBERSHIP MshipID

Buy s
PassId Buy sVia Date

SALETRANSACT STrid
PassDate
ONEDAYPASS

SoldVia
Quantity
Is Of

PASSCATEGORY MERCHANDISE
MrchId
MrchPrice
PassCatId
Price CatName MrchName

MEMBER M E M B E R S H IP
M em b Id M em b N am e M em b Z ip M sh p ID M sD ate P ayed M sh p ID M sh p N am e M sh p P rice
111 Joe 606 11 M1 1-J an-04 M1 P latinum $1,0 00
222 M ary 606 40 M3 1-J an-04 M2 G o ld $800
333 S ue 606 11 M3 1-J an-04 M3 V alue $300

O N E D A Y P A S S C A TE G O R Y M E R C H A N D IS E
P assC atId C a tN am e P rice M rc h ID M rch N am e M rch P rice
* PSA A dult $20 AP1 T -s hirt $11
PSS S enior $10 AP2 H at $9
PSK K id $3 EQ 1 Jum p R ope $12

* ONE DAY GUEST PASS S A L E TR A N S A C TIO N


P as sId P assD ate P assC atId M em b Id S T rid D a te M em b id
1-001 1-Jan-04 PSA 11 1 1111 1 1-J an-04 333
1-002 1-Jan-04 PSA 33 3 1111 2 2-J an-04 222
1-003 2-Jan-04 PSK 33 3 1111 3 3-J an-04 111

* Members can bring in non-member guests.


S O LD V IA
S T rid M rch Id Q u an tity For each non-member guest, a member buys a
111 11 AP1 1
111 11 AP2 1
one-day-guest-pass of a certain pass category.
111 12 AP2 1
111 13 EQ 1 3

SOURCE 2
“FIT-WORLD GYM” Special Events Table
Corporate Corporate Customer Event Event Type Event Date Amount
Customer ID Name and Location Type Code Charged
CC1 Sears, Chicago 60640 L-A All Day Rental, January 4, 2004 $3500
CC2 Boeing, Chicago 60611 L-H Half Day Rental, January 5, 2004 $2200

You might also like