Vous êtes sur la page 1sur 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)
MembName MembZip MEMBER Pay s MEMBERSHIP MshipID MembId MshpPrice Date MshpName

Buy s PassId Buy sVia SALETRANSACT ONEDAYPASS Date STrid

PassDate

Is Of

Quantity

SoldVia

PASSCATEGORY MrchPrice

MERCHANDISE MrchId

Price

CatName

PassCatId

MrchName

MEMBER

M E M B E R S H IP

M em b Id 111 222 333

M em b N am e Joe M ary S ue

M em b Z ip 606 11 606 40 606 11

M sh p ID M1 M3 M3

M sD ate P ayed 1-J an-04 1-J an-04 1-J an-04

M sh p ID M1 M2 M3

M sh p N am e M sh p P rice P latinum $1,0 00 G o ld $800 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 PSA PSS PSK

C a tN am e A dult S enior K id

P rice $20 $10 $3

M rc h ID AP1 AP2 EQ 1

M rch N am e T -s hirt H at Jum p R ope

M rch P rice $11 $9 $12

* ONE DAY GUEST PASS


P as sId 1-001 1-002 1-003 P assD ate 1-Jan-04 1-Jan-04 2-Jan-04 P assC atId PSA PSA PSK M em b Id 11 1 33 3 33 3

S A L E TR A N S A C TIO N

S T rid 1111 1 1111 2 1111 3

D a te 1-J an-04 2-J an-04 3-J an-04

M em b id 333 222 111

S O LD V IA

S T rid 111 11 111 11 111 12 111 13

M rch Id AP1 AP2 AP2 EQ 1

Q u an tity 1 1 1 3

* Members can bring in non-member guests. For each non-member guest, a member buys a one-day-guest-pass of a certain pass category.

SOURCE 2 FIT-WORLD GYM Special Events Table


Corporate Customer ID CC1 CC2 Corporate Customer Name and Location Sears, Chicago 60640 Boeing, Chicago 60611 Event Type Code L-A L-H Event Type All Day Rental, Half Day Rental, Event Date January 4, 2004 January 5, 2004 Amount Charged $3500 $2200

Vous aimerez peut-être aussi