Examines blended and separate transaction schemas

Slides:



Advertisements
Similar presentations
Dimensional Modeling.
Advertisements

CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Dimensional Modeling Business Intelligence Solutions.
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 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.
Principles of Dimensional Modeling
Lecture 5 CS.456 DATABASE DESIGN.
Agenda Common terms used in the software of data warehousing and what they mean. Difference between a database and a data warehouse - the difference in.
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 96 C HAPTER 17 Special Topics in REA Modeling for the.
Dimensional model. What do we know so far about … FACTS? “What is the process measuring?” Fact types:  Numeric Additive Semi-additive Non-additive (avg,
Chapter 1 Adamson & Venerable Spring Dimensional Modeling Dimensional Model Basics Fact & Dimension Tables Star Schema Granularity Facts and Measures.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
CHAPTER 3 DATABASES AND DATA WAREHOUSES. 2 OPENING CASE STUDY Chrysler Spins a Competitive Advantage with Supply Chain Management Software Chapter 2 –
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Reports. Report Summary Warehouse Reports Returned Material Serial Numbers Not Found This report list the serial numbers of material returned which were.
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.
More Dimensional Modeling. Facts Types of Fact Design Transactional Periodic Snapshot –Predictable time period –Ex. Monthly, yearly, etc. Accumulating.
Data Warehousing (Kimball, Ch.5-12) Dr. Vairam Arunachalam School of Accountancy, MU.
7 Strategies for Extracting, Transforming, and Loading.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
June 08, 2011 How to design a DATA WAREHOUSE Linh Nguyen (Elly)
Copyright© 2014, Sira Yongchareon Department of Computing, Faculty of Creative Industries and Business Lecturer : Dr. Sira Yongchareon ISCG 6425 Data Warehousing.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 9: DATA WAREHOUSING.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
SPECIAL PURPOSE DATABASES 13/09/ Temporal Database Concepts  Time is considered ordered sequence of points in some granularity Use the term choronon.
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Database Design Chapters 17 and 18.
ACCOUNTING FOR MERCHANDISE OPERATIONS
Chapter 4 Logical Database Design and the Relational Model
Chapter 4: Logical Database Design and the Relational Model
Chapter 9 Part-1: Concepts & Foreign Keys
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Accounting Information Systems 9th Edition
Applying Data Warehouse Techniques
Assignment 2 Due Thursday Feb 9, 2006
Overview and Fundamentals
Dimensional Model January 14, 2003
Inventory is used to illustrate:
Retail Sales is used to illustrate a first dimensional model
System Analysis and Design
Data Resource Management
Chapter 9 Part-1: Concepts & Foreign Keys
Advanced SQL: Views & Triggers
Typically data is extracted from multiple sources
Session 2 Welcome: The seventh learning sequence
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Minidimension Example
Assignment 2 Due Thursday Feb 9, 2006
Database Design Chapters 17 and 18.
Retail Sales is used to illustrate a first dimensional model
Retail Sales is used to illustrate a first dimensional model
Accounting Information Systems 9th Edition
Dimensional Model January 16, 2003
Chapter 7 Using SQL in Applications
Copyright © 2018, 2015, 20 Pearson Education, Inc. All Rights Reserved Database Concepts Eighth Edition Chapter # 2 The Relational Model.
Data Resource Management
Applying Data Warehouse Techniques
Review of Major Points Star schema Slowly changing dimensions Keys
Transaction fact table (figure 7.2)
Databases and Information Management
Assignment 1 Due Thursday Jan 19, 2006
Review of Major Points Star schema Slowly changing dimensions Keys
Page 37 Figure 2.3, with attributes excluded
Recursive Relationship
Dmytro Polishchuk BI Developer DB Best Technologies
Presentation transcript:

Examines blended and separate transaction schemas Ch 5 Procurement Examines blended and separate transaction schemas Slowly changing dimensions Type 1, 2, 3, hybrids Jan 2004 91.4904 Ron McFadyen

Procurement questions What materials are purchased most frequently? How are our vendors performing? Delivering on time? Jan 2004 91.4904 Ron McFadyen

Single schema approach Grain of one row per procurement transaction Blended – multiple transaction types Date Product Proc Trans Fact Contract terms Vendor Proc trans type Jan 2004 91.4904 Ron McFadyen

Procurement fact table Procurement transaction type Purchase orders Shipping notices Warehouse receipts Vendor payments … Complexities: discounts apply to payments but not other types; Many source systems would be involved Many possible degenerate dimensions Jan 2004 91.4904 Ron McFadyen

Multiple Schema approach Purchase requisition fact Figure 4.2 Product Contract terms Date Purchase order fact Vendor Shipping notices fact Received condition Employee Warehouse receipts fact Discount taken Grain of one row per procurement transaction Vendor payments fact Jan 2004 91.4904 Ron McFadyen

If a product is deleted, … Managing dimensions The data stored in dimensions originally comes from the legacy systems. Changes that occur in the legacy system must be reflected in the data warehouse: If a new product is being sold, it must be added to the product dimension in the warehouse. If a product changes, we need to reflect the changes in the product dimension in the warehouse If a product is deleted, … Jan 2004 91.4904 Ron McFadyen

Chapter 4 deals with slowly changing dimensions Managing dimensions We’ll classify dimensions according to the frequency with which the source data changes: Slowly changing Chapter 4 deals with slowly changing dimensions Rapidly changing Jan 2004 91.4904 Ron McFadyen

Managing slowly changing dimensions If a source field changes, and if we consider the dimension a slowly changing dimension, we have three basic approaches: Type 1 Overwrite Type 2 Create a new dimension record Type 3 Add a dimension column Jan 2004 91.4904 Ron McFadyen

Overwrite the dimension record with the new values Type 1 Overwrite the dimension record with the new values Used whenever the old value of the attribute is of no importance Definitely applicable if a value changes because of a correction Jan 2004 91.4904 Ron McFadyen

Create a new dimension record with a new surrogate key value Type 2 Create a new dimension record with a new surrogate key value Commonly used approach Said to partition history e.g. suppose a customer moves We may still want to associate the sales to the customer’s old address In this case we create a new customer record with the customer’s new field values This new customer record will have a new surrogate key Old facts are not altered Jan 2004 91.4904 Ron McFadyen

Type 3 Create an ‘old’ field in the dimension record to store the immediately previous value Jan 2004 91.4904 Ron McFadyen

Predictable set of changes Hybrids Predictable set of changes E.g. sales organization re-assigns districts every year Sales Rep dimension has 5 values for each of current and 4 previous district assignments Current district Prior1 district Prior2 district … Jan 2004 91.4904 Ron McFadyen

Unpredictable changes E.g. department assignment for a product Hybrids Unpredictable changes E.g. department assignment for a product Keep two values for department: Current and historically accurate value Type 1, type 2 and type 3  type 6 Example on page 104 Jan 2004 91.4904 Ron McFadyen

Used for all dimensions as primary keys Surrogate keys Used for all dimensions as primary keys Note that most dimensions should have a special row for “unknown”. Examine our sample Promotion dimension; there is one row for “No Promotion” Smart Keys A smart key is a key that is a single attribute with components that have meaning to end users This should be avoided and broken down into distinct fields Jan 2004 91.4904 Ron McFadyen

Production/Natural keys Do not use as keys in dimension tables – use surrogate keys instead Production, or legacy, keys could be reused on the operational side. The warehouse DBA has no control over those sorts of issues. If companies merge or are acquired, duplicates could arise. Surrogate keys get around the difficulties of using production keys in the warehouse. Jan 2004 91.4904 Ron McFadyen