Retail Sales is used to illustrate a first dimensional model

Slides:



Advertisements
Similar presentations
Dimensional Modeling.
Advertisements

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
Dimensional Modeling Business Intelligence Solutions.
1 9 Ch3, Hachim Haddouti Adv. DBS and Data Warehouse CSC5301 Ch3 Hachim Haddouti Hachim Haddouti.
© Ron McFadyen1 Many-to-one-to-many We need information that can only be obtained by accessing two fact tables through a common dimension … drilling across.
March 2010ACS-4904 Ron McFadyen1 Aggregate management References: Lawrence Corr Aggregate improvement
Data Warehouse and Business Intelligence Dr. Minder Chen Spring 2010.
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.
DWH – Dimesional Modeling PDT Genči. 2 Outline Requirement gathering Fact and Dimension table Star schema Inside dimension table Inside fact table STAR.
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.
Normalized model vs dimensional model
CENTURY 21 ACCOUNTING © Thomson/South-Western LESSON 9-1 Journalizing Purchases Using a Purchases Journal Original created by M.C. McLaughlin, Thomson/South-Western.
Basic Model: Retail Grocery Store
1 Data Warehousing Lecture-15 Issues of Dimensional Modeling Virtual University of Pakistan Ahsan Abdullah Assoc. Prof. & Head Center for Agro-Informatics.
UNIT-II Principles of dimensional modeling
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.
Data Warehousing DSCI 4103 Dr. Mennecke Chapter 2.
DATA WAREHOUSING – DIMENSIONAL MODELLING AND SCHEMAS With MIKE –AARONE ATUHE Handout 5.
ACCOUNTING FOR MERCHANDISE OPERATIONS
On-Line Analytic Processing
PRINCIPLES OF DIMENSIONAL MODELING
MIS2502: Data Analytics Dimensional Data Modeling
Star Schema.
Applying Data Warehouse Techniques
MIS2502: Data Analytics Dimensional Data Modeling
Assignment 2 Due Thursday Feb 9, 2006
MIS2502: Data Analytics Dimensional Data Modeling
Overview and Fundamentals
Dimensional Model January 14, 2003
Inventory is used to illustrate:
Charles Phillips screen
MIS2502: Data Analytics Dimensional Data Modeling
© 2014 Cengage Learning. All Rights Reserved.
Recommended Budget Reductions
CMPE 226 Database Systems April 11 Class Meeting
Introduction to Customizing Reports in SAP
© 2014 Cengage Learning. All Rights Reserved.
© 2014 Cengage Learning. All Rights Reserved.
MIS2502: Data Analytics Dimensional Data Modeling
Minidimension Example
Assignment 2 Due Thursday Feb 9, 2006
Recording Transactions in a General Journal
Retail Sales is used to illustrate a first dimensional model
Data warehouse architecture CIF, DM Bus Matrix Star schema
Introduction to Customizing Reports in SAP
Dimensional Modeling.
MIS2502: Data Analytics Dimensional Data Modeling
Chapter 4 Company Code Global Parameters
Retail Sales is used to illustrate a first dimensional model
Role Playing Dimensions (p )
Dimensional Model January 16, 2003
LESSON 9-2 Accounting for Merchandise Purchases
DWH – Dimesional Modeling
Applying Data Warehouse Techniques
SALES RECEIPT Downloaded from
Aggregate improvement Lost, shrunken, and collapsed Ralph Kimball
Examines blended and separate transaction schemas
Review of Major Points Star schema Slowly changing dimensions Keys
Transaction fact table (figure 7.2)
Many aggregates can be defined for one base star schema
Applying Data Warehouse Techniques
Review of Major Points Star schema Slowly changing dimensions Keys
Page 37 Figure 2.3, with attributes excluded
Presentation transcript:

Retail Sales is used to illustrate a first dimensional model Chapter 2 Retail Sales is used to illustrate a first dimensional model Design process Case study: POS example Star schema Facts Dimensions Creating the schema in SQL Server January 2004 91.4904 Ron McFadyen

The Dimensional Design Process 4 Step Dimensional Design Process Select the business process, examples: invoicing, orders, inventory, general ledger, … Declare the grain. Determine exactly what an individual fact table row represents. Examples: a line item on an order, a boarding pass to get on a flight, a student’s course registration, a monthly snapshot for a bank account. Choose the dimensions that apply to the facts. What describes each fact. Examples: customer dimension, student dimension, course dimension, day dimension. Identify the numeric facts that appear in the rows of the fact table. January 2004 91.4904 Ron McFadyen

The business process: POS retail sales Case Study Case Study The business process: POS retail sales Grain of the fact table: individual line items on a POS transaction The dimensions: date, product, store, promotion The facts: sales quantity, cost dollar amount, sales dollar amount, gross profit dollar amount (derivable) January 2004 91.4904 Ron McFadyen

A typical drawing seen in practice, in articles, … Case Study Schema Date Product Sales facts Store Promotion A typical drawing seen in practice, in articles, … January 2004 91.4904 Ron McFadyen

Case Study Schema in Peter Chen Notation 1 1 Product Date n n Sales facts n n n Store Promotion 1 1 1 Sales Transaction Note: Sales transaction does not appear in text. Later in chapter it is discussed as a degenerate dimension January 2004 91.4904 Ron McFadyen

Facts can be described as additive, non-additive, semi-additive. Case Study Fact Table Sales facts Sales quantity Sales dollar amount Cost dollar amount Gross profit dollar amount Additive Facts can be described as additive, non-additive, semi-additive. Additive: can be meaningfully summed across all dimensions Semi-additive: …………………….. across some dimensions Non-additive: can’t be … The text discusses some non-additive facts that might be included in such a fact table: gross margin, unit price January 2004 91.4904 Ron McFadyen

Case Study Fact Table The physical table: Sales facts Date key (FK) Product key (FK) Store key (FK) Promotion key (FK) POS Transaction Number (degenerate dimension) Sales quantity Sales dollar amount Cost dollar amount Gross profit dollar amount PK January 2004 91.4904 Ron McFadyen

Case Study Date Dimension Very descriptive Easy to set criteria for queries Easy to get headings for reports One row for each day (this is the grain of the Date dimension) PK is a surrogate key Used in every star schema Hierarchies are present Not normalized attribute hierarchy Calendar week  … Fiscal week  … Date key (PK) Date Full date description Day of week Day number in epoch Week number in epoch Month number in epoch Day number in calendar month … …. Last day in week indicator Holiday indicator Weekday indicator SQL date stamp … Calendar week Calendar month Calendar year Fiscal week Fiscal month Fiscal year January 2004 91.4904 Ron McFadyen

Case Study Product Dimension Very descriptive Easy to set criteria for queries Easy to get headings for reports One row for each product for sale, or ever sold, by the company PK is a surrogate key. We do not use the operational PK here. Over time it may not be unique: the business may re-use keys, companies merge … Not normalized An attribute hierarchy Brand  category  department Product key (PK) Product description SKU number Brand description Category description Department description Package type description Package size Fat content Diet type Weight Weight units of measure … January 2004 91.4904 Ron McFadyen

Case Study Drilling Down/Up Product Run a query to generate: Department, sales amount, sales quantity Now, add another attribute at a ‘lower’ level such as brand: Department, brand, sales amount, sales quantity What is meant by row-headers (in the text)? Product key (PK) Product description SKU number (natural key) Brand description Category description Department description Package type description Package size Fat content Diet type Weight Weight units of measure … January 2004 91.4904 Ron McFadyen

Case Study Store Dimension Very descriptive Easy to set criteria for queries Easy to get headings for reports One row for each store PK is a surrogate key. Not normalized An attribute hierarchies city  county  state  zip district  region How does the text handles the “First open date” attribute? Store key (PK) Store name Store number (natural key) Store street address Store city Store county Store state Store zip code … Total square footage First open date January 2004 91.4904 Ron McFadyen

Case Study Promotion Dimension Very descriptive Easy to set criteria for queries Easy to get headings for reports One row for each promotion PK is a surrogate key. Need a special row for “no promotion in effect” Why? Promotion key (PK) Promotion name Price reduction type Promotion media type Ad type … January 2004 91.4904 Ron McFadyen