Dmytro Polishchuk BI Developer DB Best Technologies

Slides:



Advertisements
Similar presentations
Tips and Tricks for Dimensional Modeling
Advertisements

BY LECTURER/ AISHA DAWOOD DW Lab # 4 Overview of Extraction, Transformation, and Loading.
SQL Server Accelerator for Business Intelligence (SSABI)
Time in Databases CSCI 6442 With thanks to Richard Snodgrass, 1985 ACM /85/005/0236.
Technical BI Project Lifecycle
Dimensional Modeling Business Intelligence Solutions.
Dimensional Modeling CS 543 – Data Warehousing. CS Data Warehousing (Sp ) - Asim LUMS2 From Requirements to Data Models.
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.
TURKISH STATISTICAL INSTITUTE INFORMATION TECHNOLOGIES DEPARTMENT 1 ETL PROCESS (Muscat, Oman)
Architecting a Large-Scale Data Warehouse with SQL Server 2005 Mark Morton Senior Technical Consultant IT Training Solutions DAT313.
ETL By Dr. Gabriel.
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.
Sayed Ahmed Logical Design of a Data Warehouse.  Free Training and Educational Services  Training and Education in Bangla: Training and Education in.
Best Practices for Data Warehousing. 2 Agenda – Best Practices for DW-BI Best Practices in Data Modeling Best Practices in ETL Best Practices in Reporting.
ISV Innovation Presented by ISV Innovation Presented by Business Intelligence Fundamentals: Data Loading Ola Ekdahl IT Mentors 9/12/08.
Introduction to Accounting Information Systems
Completing the Model Common Problems in Database Design.
Dimensional model. What do we know so far about … FACTS? “What is the process measuring?” Fact types:  Numeric Additive Semi-additive Non-additive (avg,
USE OF TEMPORAL CONCEPTS IN TRANSACTIONAL DATABASES.
More Dimensional Modeling. Facts Types of Fact Design Transactional Periodic Snapshot –Predictable time period –Ex. Monthly, yearly, etc. Accumulating.
ISQS 3358, Business Intelligence Supplemental Notes on the Term Project Zhangxi Lin Texas Tech University 1.
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.
1 Copyright © 2008, Oracle. All rights reserved. I Course Introduction.
Event Title Event Date. Module 02—Introduction to Dimensional Modeling Techniques Name Title Microsoft Corporation.
Building the Corporate Data Warehouse Pindaro Demertzoglou Data Resource Management.
Building the Corporate Data Warehouse Pindaro Demertzoglou Lally School of Management Data Resource Management.
Indexing Your Data Warehouse Troy Gallant, MTA. Agenda  A little about me  Indexing review  Enterprise Data Warehouse (EDW) vs. OLTP  EDW structure.
Extending and Creating Dynamics AX OLAP Cubes
Building a Polished Cube
Katowice,
Still a Toddler but growing fast
Introduction to SQL Server Analysis Services
Chapter 13 Business Intelligence and Data Warehouses
Information from Evolving Data
Example of a page header
Data Warehousing Business Intelligence
Example Question–Is this relation Well Structured? Student
Applying Data Warehouse Techniques
Overview and Fundamentals
Competing on Analytics II
Dimensional Model January 14, 2003
CIS 515 Competitive Success/snaptutorial.com
CIS 515 Education for Service/snaptutorial.com
CIS 515 Teaching Effectively-- snaptutorial.com
Swagatika Sarangi (Jazz), MDM Expert
Populating a Data Warehouse
Traveling in time with SQL Server 2017
Populating a Data Warehouse
Applying Data Warehouse Techniques
Populating a Data Warehouse
Advanced SQL: Views & Triggers
Typically data is extracted from multiple sources
The Relational Model Textbook /7/2018.
Minidimension Example
Cloud Data Replication with SQL Data Sync
Multivalued Dimensions and Bridges
Applying Data Warehouse Techniques
Designing SSIS Packages for Performance
Adding Multiple Logical Table Sources
Dimensional Model January 16, 2003
Applying Data Warehouse Techniques
Examines blended and separate transaction schemas
Building a Microsoft BI solution step-by-step
Using Columnstore indexes in Azure DevOps Services. Lessons learned
Using Columnstore indexes in Azure DevOps Services. Lessons learned
Applying Data Warehouse Techniques
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Dimension Load Patterns with Azure Data Factory Data Flows
Implementing ETL solution for Incremental Data Load in Microsoft SQL Server Ganesh Lohani SR. Data Analyst Lockheed Martin
Presentation transcript:

Dmytro Polishchuk BI Developer DB Best Technologies Slowly Changing Dimensions types 0 through 7 and their ETL implementation

Organizers Natalia Pogorelova Andriy Pogorelov Paul Stetsenko

Sponsors

What are Slowly Changing Dimensions (SCDs) SCDs - attribute values that change slowly and unpredictably over time Different type of SCDs - different change tracking techniques

Types of Slowly Changing Dimensions Type 0: Retain Original Type 1: Overwrite Type 2: Add New Row Type 3: Add New Attribute Type 4: Add Mini-Dimension Type 5: Add Mini-Dimension and Type 1 Outrigger Type 6: Add Type 1 Attributes to Type 2 Dimension Type 7: Dual Type 1 and Type 2 Dimensions

SCD Type 0: Retain Original Once we load it, we don’t change it All changes are disregarded Used for attributes labeled “original” (customer original credit card) or “first” (date of the first purchase) Natural (business) keys are always type 0 Applies to the most attributes in a date dimension

The old value is overwritten by the new value Type 1: Overwrite The old value is overwritten by the new value Reflects only the most recent assignment No history Before Change After Change

Represents the history of changing attribute values Type 2: Add New Row Represents the history of changing attribute values A new dimension row is inserted New surrogate key is assigned “Accessories” – valid from May 1st, 2019 to 31st August, 2019 “Others” – valid starting from September 1st, 2019

Type 3: Add New Attribute Additional column is used Original value is overwritten (SCD 1) Reports can still use the old value Sometimes called “Alternate Reality”

Type 4: Add Mini-Dimension Attributes are split off to a mini-dimension Applied to: - Rapidly Changing Dimensions (RCD) - to frequently used attributes in multimillion-row dimensions Fact tables capture the both surrogate keys

Type 5: Add Mini-Dimension and Type 1 Outrigger SCD 5 is an enhancement to SCD 4 technic A mini-dimension primary key is added to the base dimension as SCD 1 attribute * Allows to: - analyze current mini-dimension attribute values without involving a fact table - roll up historical facts based on the current mini-dimension attribute values * This technique is named type 5 because 4 + 1 equals 5

Type 5: Logical Representation to the BI tools The base dimension and the mini-dimension outrigger are represented as a singe table in the presentation area for the BI tools

Type 6: Add Type 1 Attributes to Type 2 Dimension Additional column (SCD 3) for the attribute: - one for tracking historic values (SCD 2) - one for representing the current assignment (SCD 1) * Allows to analyze historic facts based on historic attribute values as well as on the current ones * This technique is named type 6 because 3 + 2 + 1 and 3 x 2 x 1 both equal 6

Type 7: Dual Type 1 and Type 2 Dimensions Supports both current and historic perspectives for many attributes Both business key and surrogate key are included into a fact table The business key joins to a dimension with the current values (SCD 1) Queries based on current attribute values filter on a smaller dimension table

Type 7: Alternative Approach with Single Surrogate Key Each surrogate key is associated with the current value Both dimensions in this case have equal number of rows

About the Speaker Dmytro Polishchuk BI Developer at DB Best Technologies Microsoft Certified Solutions Associate: SQL 2016 BI Development Email: dmitriy.po@ukr.net LinkedIn: https://www.linkedin.com/in/dmytro-polishchuk-166908b1/ Skype: dmitriy.po1986

Sponsors

Thank you