330 likes | 896 Views
Apex Supermarket Data Warehouse. Presentation 2: Data Modeling. Presented By: Khalid Nour Muhammad Rizvi Raghuram Vempali Surekha Vemuri. Outline. Background Business Need Fact Table Dimension Tables Star Schema Snowflake Schema Data Dictionary Information Package
E N D
Apex Supermarket Data Warehouse Presentation 2: Data Modeling Presented By: Khalid Nour Muhammad Rizvi RaghuramVempali SurekhaVemuri
Outline • Background • Business Need • Fact Table • Dimension Tables • Star Schema • Snowflake Schema • Data Dictionary • Information Package • Table Hierarchies
Background • Apex Supermarket is a supermarket chain with 4 stores in South Texas, Central Texas, North Texas and East Texas • They have stores in: • South Texas: Laredo • Central Texas: Midland • North Texas: Denton • East Texas: Houston
Business Need • Help executive staff study the sale of products by Categories, Regions, States, Cities, Stores, and Time • Executive Staff will be able to figure out sales revenue through the different dimension combinations • Give strategic information for the Executive Staff to make decisions on optimizing prices of products
Data Warehouse Fact Table • Sales Fact Table • Keys • OrderID • CardID • ProductID • DateID • StoreID • Non-Key Columns • TotalSales • TotalCost • Gross Profit
Data Warehouse Dimension Tables • Order Table • Product Table • Promotion Card Table • Store Table • Time Table
Data Dictionary • Sales Fact Table • Product Category Table
Data Dictionary (Cont’d) • Product Table • Vendor Table
Data Dictionary (Cont’d) • Order Table • Store
Data Dictionary (Cont’d) • Promotion Card Table • Region Table
Data Dictionary (Cont’d) • Time Table • Quarter Table
Data Dictionary (Cont’d) • Day of Week Table • Month Table • Year Table
Invoice Number Date Ordered Date received Package cost Size Small (1-3 billion turnover) Medium (4-10 billion turnover) Large (>11 billion) Type Organic Vendor Traditional Vendor Category produce beverages staples spices canned baby condiments paper cleaning personal Frozen diary Order Hierarchy
Store Hierarchy • Store name • City • State • Zip • Regions • South Texas • Central Texas • North Texas • East Texas Each store location is in one region
Date Day of Week Quarter Year Quarter Values Quarter I January February March Quarter II April May June Quarter III July August September Quarter IV October November December Time Hierarchy
Product Hierarchy Products Categories canned baby condiments paper cleaning personal frozen diary Produce Beverages Staples spices Fruits Sodas Cereals Seasoning Olives Diapers Ketchup Plates Bleach Shampoo Broccoli Eggs Beans Milk Veggies Juices Bread Salt/pepper Beans Wipes Mayo Cups Detergent Conditioner Peas Water Grits Soups Formula Salad dressing Napkins Dish liquid lotion Cheese Corn Alcohol Baby food Olive oil bags Shaving cream wipes Potatoes Baby water Spinach