Professional Documents
Culture Documents
TUN Dimensionalmodelingproblem Assignment PDF
TUN Dimensionalmodelingproblem Assignment PDF
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
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