Basic Model: Retail Grocery Store

Slides:



Advertisements
Similar presentations
Dimensional Modeling By Dr. Gabriel.
Advertisements

Dimensional Modeling.
Cognos 8 Training Session
BY LECTURER/ AISHA DAWOOD DW Lab # 2. LAB EXERCISE #1 Oracle Data Warehousing Goal: Develop an application to implement defining subject area, design.
Alternative Database topology: The star schema
Copyright © Starsoft Inc, Data Warehouse Architecture By Slavko Stemberger.
Dimensional Modeling CS 543 – Data Warehousing. CS Data Warehousing (Sp ) - Asim LUMS2 From Requirements to Data Models.
1 9 Ch3, Hachim Haddouti Adv. DBS and Data Warehouse CSC5301 Ch3 Hachim Haddouti Hachim Haddouti.
Data Warehouse and Business Intelligence Dr. Minder Chen Spring 2010.
Data Warehousing - 3 ISYS 650. Snowflake Schema one or more dimension tables do not join directly to the fact table but must join through other dimension.
OLAP applications. Application areas OLAP most commonly used in the financial and marketing areas Data rich industries have been the most typical users.
CSE6011 Warehouse Models & Operators  Data Models  relations  stars & snowflakes  cubes  Operators  slice & dice  roll-up, drill down  pivoting.
Data Warehousing (Kimball, Ch.2-4) Dr. Vairam Arunachalam School of Accountancy, MU.
Data Warehousing DSCI 4103 Dr. Mennecke Introduction and Chapter 1.
Principles of Dimensional Modeling
Implementing a Data Warehouse with SQL Server Jump Start
Data warehousing theory and modelling techniques Building Dimensional Models.
Class Agenda: 02/13/2014 Review Goals of assignments.
CS 345: Topics in Data Warehousing Thursday, October 7, 2004.
CS 345: Topics in Data Warehousing Tuesday, October 5, 2004.
Business Intelligence
DWH – Dimesional Modeling PDT Genči. 2 Outline Requirement gathering Fact and Dimension table Star schema Inside dimension table Inside fact table STAR.
Bogdan Shishedjiev Data Analysis1 Data Analysis OLTP and OLAP Data Warehouse SQL for Data Analysis Data Mining.
Hachim Haddouti, adv. DBMS & DW CSC5301, Ch4 Adv. DBMS & DW CH 4 Hachim Haddouti.
Dimensional model. What do we know so far about … FACTS? “What is the process measuring?” Fact types:  Numeric Additive Semi-additive Non-additive (avg,
Dimensional Modeling Chapter 2. The Dimensional Data Model An alternative to the normalized data model Present information as simply as possible (easier.
Data Warehouse and Business Intelligence Dr. Minder Chen Fall 2009.
DIMENSIONAL MODELLING. Overview Clearly understand how the requirements definition determines data design Introduce dimensional modeling and contrast.
Chapter 1 Adamson & Venerable Spring Dimensional Modeling Dimensional Model Basics Fact & Dimension Tables Star Schema Granularity Facts and Measures.
Roadmap 1.What is the data warehouse, data mart 2.Multi-dimensional data modeling 3.Data warehouse design – schemas, indices 4.The Data Cube operator –
INVENTORY CASE STUDY. Introduction Optimized inventory levels in stores can have a major impact on chain profitability: minimize out-of-stocks reduce.
Dimensional Modeling Overview. Agenda ■ Dimensional Modeling Overview ■ Dimensional Modeling Steps ■ Dimensional Modeling Framework ■ Retail Sales - Case.
Normalized model vs dimensional model
DIMENSIONAL MODELING MIS2502 Data Analytics. So we know… Relational databases are good for storing transactional data But bad for analytical data What.
MIS2502: Data Analytics Dimensional Data Modeling
1 Data Warehousing Lecture-15 Issues of Dimensional Modeling Virtual University of Pakistan Ahsan Abdullah Assoc. Prof. & Head Center for Agro-Informatics.
More Dimensional Modeling. Facts Types of Fact Design Transactional Periodic Snapshot –Predictable time period –Ex. Monthly, yearly, etc. Accumulating.
UNIT-II Principles of dimensional modeling
CSE 4DWD – Semester _______________________________ Table of Contents 1.Case Study 2.Defining the business processes 3.Data Warehouse bus matrix.
CMPE 226 Database Systems October 21 Class Meeting Department of Computer Engineering San Jose State University Fall 2015 Instructor: Ron Mak
Creating the Dimensional Model
1 Agenda – 04/02/2013 Discuss class schedule and deliverables. Discuss project. Design due on 04/18. Discuss data mart design. Use class exercise to design.
Fact Table The fact table stores business events. The attributes explain the conditions of the entity at the time the business event happened.
Data Warehousing (Kimball, Ch.5-12) Dr. Vairam Arunachalam School of Accountancy, MU.
Dr. Abdul Basit Siddiqui. The Process of Dimensional Modeling Four Step Method from ER to DM 1. Choose the Business Process 2. Choose the Grain 3. Choose.
Data Warehousing DSCI 4103 Dr. Mennecke Chapter 2.
Dimensional Modeling Primer Chapter 1 Kimball & Ross.
Last Updated : 26th may 2003 Center of Excellence Data Warehousing Introductionto Data Modeling.
Shawn Nesser Microsoft. Introduction Basic Concepts Slowly Changing Dimensions Conformed Dimensions Advanced Concepts Summary.
COMP 430 Intro. to Database Systems Denormalization & Dimensional Modeling.
3 Copyright © 2006, Oracle. All rights reserved. Business, Logical, and Dimensional Modeling.
DATA WAREHOUSING – DIMENSIONAL MODELLING AND SCHEMAS With MIKE –AARONE ATUHE Handout 5.
Star Schema.
MIS2502: Data Analytics Dimensional Data Modeling
Dimensional Model January 14, 2003
Inventory is used to illustrate:
Charles Phillips screen
Retail Sales is used to illustrate a first dimensional model
MIS2502: Data Analytics Dimensional Data Modeling
Retail Sales is used to illustrate a first dimensional model
Data warehouse architecture CIF, DM Bus Matrix Star schema
MIS2502: Data Analytics Dimensional Data Modeling
Retail Sales is used to illustrate a first dimensional model
Dimensional Model January 16, 2003
DWH – Dimesional Modeling
Applying Data Warehouse Techniques
Examines blended and separate transaction schemas
Review of Major Points Star schema Slowly changing dimensions Keys
Applying Data Warehouse Techniques
Review of Major Points Star schema Slowly changing dimensions Keys
Presentation transcript:

Basic Model: Retail Grocery Store Process: Retail Sales Grain: POS line item Dimensions: Date, Store, Product, Promotion Facts: Sales Quantity, Sales Dollar Amount, Cost Dollar Amount, Gross Profit Dollar Amount.

Model DATE DateKey Attributes STORE StoreKey PROMOTION PromotionKey PRODUCT ProductKey POS FACT POSTransactionNumber SalesQuantity SalesDollarAmount CostDollarAmount GrossProfitDollarAmount

Possible Date Attributes SQL date Full date description Day of week Day of month Day of calendar year Day of fiscal year Month of calendar year Month of fiscal year Calendar Quarter Fiscal Quarter Fiscal week Year Month Fiscal year Holiday ? Holiday name Day of holiday Weekday ? Selling season Major event etc.

Possible Product Attributes Description SKU number Brand description Department Package type Package size Fat content Diet type Weight Weight units of measure Storage type Shelf unit type Shelf width Shelf height Shelf depth etc.

Possible Store Attributes Store Name Store Number Street address City County State Zip Manager District Region Floor plan type Photo processing type Financial service type Square footage Selling square footage First open date Last remodel date etc.

Possible Promotion Attributes Promotion name Price reduction type Promotion media Ad type Ad agency Display type Coupon type Promotion cost Begin date End date etc.

Factless Fact Tables In order to evaluate promotions that might have generated no sales we need another approach. Promotion could generate another fact table (or could be considered a fact table in itself). That new fact table would have no additive attributes.

Conformed Dimensions: Inventory Snapshot Model Process: Store inventory Grain: Daily inventory by product and store Dimensions: Date, product, store Fact: quantity-on-hand

Dimensional Model DATE DateKey Attributes STORE StoreKey PRODUCT ProductKey Inventory Fact QuantityOnHand QuantitySold ValueAtCost ValueAtSellingPrice Note: QuantityOnHand is semi-additive. It is additive across product and store, but not across date. The other attributes are additive.

Conformed Dimensions Common dimensions for different processes should be the same. Note: Dimensions for roll-up or aggregated fact tables my add or eliminate attributes based on the aggregation Where attributes apply, they should mean the same thing.

The Bus Matrix Process Retail Sales Retail Inventory Retail Deliveries Date Product Store Promotion Warehouse Vendor Contract Shipper Retail Sales X Retail Inventory Retail Deliveries Warehouse Inventory Warehouse Deliveries Purchase Orders

Slowly Changing Dimensions Attributes in a dimensional table that change over time. Three approaches Type 1: overwrite the old value Type 2: create a new dimensional record Type 3: create a “previous value” attribute

Examples Original Type 1 Type 2 Type 3 Hybrid ProductKey Description Category SKU 21553 LeapPad Education LP2105 Type 1 ProductKey Description Category SKU 21553 LeapPad Toy LP2105 Type 2 ProductKey Description Category SKU 21553 LeapPad Education LP2105 44631 Toy Type 3 ProductKey Description Category OldCat SKU 21553 LeapPad Toy Education LP2105 Hybrid ProductKey Description Category OldCat SKU 21335 LeapPad Electronics Education LP2105 44631 Toy 68122

More about dimensions Views for dimensions used for different purposes e.g. StartDate and EndDate Junk dimensions for flags and miscellaneous categories removed from the fact table Degenerate dimensions have no attributes Usually reserved for order number or something similar

Accumulation Snapshot State change summary that has one row per item. Access rows on each update.

Multiple Granularities Product sales vs. Annual quota Line item cost vs. Order shipping cost