Вы находитесь на странице: 1из 4

AYFG Data Warehouse Design SECTION 1: SUMMARY Are-You-Fit-Gym (AYFG) is considering building a data warehouse for sales decision

support. Sales metrics at AYFG include such as information as membership sales, merchandise sales, special events rental fees and day pass sales. Because a comprehensive, enterprise-wide data warehouse does not exist yet at AYFG, the primary goal is to develop an enterprise-wide corporate sales data warehouse to support AYFGs Corporate Performance Management Initiative. This will be designed to provide end users with the ability to support business decisions concerning member/customer sales patterns and product/merchandise sales patterns. To create this data warehouse, data from each gyms system must be extracted and combined across each of the sources. Transformations on data, such as newly added members, may or may not be accurate. This data must be cleansed and corrected for misspellings, standardized across formatting, deduplicated and must have surrogate keys assigned. If AYFG is using SQL Server, this can probably be accomplished with SQL views. SECTION 2: ASSUMPTIONS The design of the star schema for AYFGs data warehouse is dependent upon the following assumptions: 1. Analysis of sales by location will be of interest to AYFG, so location database will be created to support this type of analysis. 2. Member turnover will be of interest to AYFG, as individuals routinely add and drop their membership fees. As such, dates of membership for a member will be represented with tuples that represent the date from which a membership was sold until it is terminated. Historical data for a valid membership period for a member will be retained and a flag will be raised for the current membership. For each additional membership period, i.e., a renewal of a membership, an additional surrogate key is generated for the existing member ID. 3. Though membership spans a period of time, often many months or years, a charge is incurred by the member monthly when the membership fee is processed as a transaction. If a member terminates membership, there will not be a transaction for the monthly membership fee.

SECTION 3: STAR SCHEMA

SECTION 4: SAMPLE DATA DAILY SALES FACTS Gym Key 1 1 1 1 1 2 2 Product Key 3 5 6 10 11 4 7 MEMBER DIMENSION Member Member Member Member Address Key Identifier Name 1 111 Joe 123 Red Lane, Indianapolis IN 46240 2 111 Joe 123 Red Lane, Indianapolis IN 46240 3 222 Mary 123 DB Lane, Bloomington IN 47405 4 333 Sue 123 Best Buy Lane, Bloomington IN 47401 5 CC1 Sears Bloomington IN 47401 6 CC2 IU Bloomington IN 47405 GYM DIMENSION Gym Key 1 2 3 4 5 6 7 Gym Location Identifier AL001 AL002 AL003 AL004 IN001 NC001 NC002 Gym Street Address 3427 Colonnade Parkway 2244 Pelham Parkway 1090 Montgomery Highway 2300 Berryhill Road 7140 E Washington Street 2950 South Church Street 3308 Bragg Blvd Gym City Name Birmingham Pelham Vestavia Montgomery Indianapolis Burlington Fayetteville Gym State Code AL AL AL AL IN NC NC Gym Postal Code 35243 35124 35216 36117 46219 27215 28303 Member Category Individual Individual Individual Individual From Date 2004-01-01 2012-01-01 2004-01-01 2004-01-01 To Date Current Member Key 8 9 9 12 12 23 34 Date Key 20130104 20130104 20130104 20130104 20130104 20130104 20130104 Transaction Number 1001 1002 1002 1003 1003 1004 1005 Sales Quantity 1 2 2 1 1 2 1 Dollar Sales Amount 1000 300 11 10 3 800 9

2009-12-31 N Y Y Y

Corporate 2001-01-01 Corporate 2004-11-01

Y 2009-11-01 N

PRODUCT DIMENSION Product Key 1 2 3 4 5 6 7 8 9 10 11 Product Identifier L-A L-H M1 M2 M3 AP1 AP2 EQ1 PSA PSS PSK Product Name All day rental Half day rental Platinum Gold Value T-Shirt Hat Jump Rope Adult Senior Kid Product Category Special Events Special Events Membership Membership Membership Merchandise Merchandise Merchandise One Day Pass One Day Pass One Day Pass Product Price 3500 2200 1000 800 300 11 9 12 20 10 3

DATE DIMENSION Date Key Date Date Day of the Description Week Tuesday Calendar Calendar Calendar Fiscal Month Quarter Year YearMonth January Q1 2013 F2013-01 Q1 Q1 Q1 Q1 Q1 Q1 2013 2013 2013 2013 2013 2013 F2013-01 F2013-01 F2013-01 F2013-01 F2013-01 F2013-01 Holiday Indicator Y N N N N N N Weekday Indicator Y Y Y Y Y Y Y

20130101 01/01/2013 January 1, 2013 20130102 01/02/2013 January 2, 2013 20130103 01/03/2013 January 3, 2013 20130104 01/04/2013 January 4, 2013 20130105 01/05/2013 January 5, 2013 20130106 01/06/2013 January 6, 2013 20130107 01/07/2013 January 7, 2013

Wednesday January Thursday Friday Saturday Sunday Monday January January January January January

Вам также может понравиться