SlideShare a Scribd company logo
1 of 12
Slowly Changing Dimension
Fact ?
Data Warehouse ?
Dimension ?
Slowly Changing Dimension
• İlk olarak, Kimball tarafından ortaya
atılmıştır.
• Dimension tablolarındaki değişimleri yönetir.
• 7 farklı versiyonu vardır. (1+3+3)
• Versiyon 0
• Version 1,2,3
• Versiyon 4,5,6
Örnek Müşteri Tablosu
Id Name Surname City
13 Deniz Alkan İstanbul
Sivas
Versiyon 0 – Sabit Tablo
Id Name Surname City
13 Deniz Alkan İstanbul
Id Name Surname City
13 Deniz Alkan İstanbul
• Yapılan değişiklikten etkilenmez. Değer sabit kalır.
Versiyon 1 – Doğrudan Güncelle
Id Name Surname City
13 Deniz Alkan İstanbul
Id Name Surname City
13 Deniz Alkan Sivas
• Yapılan değişiklik doğrudan mevcut verinin üzerine yazılır.
Versiyon 2 – Satır Bazlı
Güncelleme
Id Name Surname City
13 Deniz Alkan İstanbul
Id Name Surname City S_Id Flag Created Updated
13 Deniz Alkan İstanbul 1 0 2020-01-01 2020-12-13
13 Deniz Alkan Sivas 2 1 2020-12-13 NULL
• Güncellenen veri, satır olarak eklenir.
Versiyon 3 – Kolon Bazlı
Güncelleme
Id Name Surname City
13 Deniz Alkan İstanbul
• Güncellenen veri, kolon olarak eklenir.
Id Name Surname City PreviousCity
13 Deniz Alkan Sivas İstanbul
Versiyon 4 – Tarihsel Tablo
Kullanımı
Id Name Surname City
13 Deniz Alkan İstanbul
• Veri, Dimension tablosu üzerinde birinci versiyondaki gibi doğrudan
güncellenir.
• Ek olarak history tablosunda değişiklik hareketleri tutulur.
Id Name Surname
13 Deniz Alkan +
S_Id Id City Created
1 13 İstanbul 2020-01-01
2 13 Sivas 2020-12-13
Versiyon 5 – Hybrid (4+1)
Id Name Surname City
13 Deniz Alkan İstanbul
• Veri, Dimension tablosu üzerinde birinci versiyondaki gibi doğrudan
güncellenir.
• Ek olarak history tablosunda değişiklik hareketleri tutulur.
Id Name Surname City
13 Deniz Alkan Sivas +
S_Id Id City Created
1 13 İstanbul 2020-01-01
2 13 Sivas 2020-12-13
Versiyon 6 – Hybrid (1+2+3)
Id Name Surname City
13 Deniz Alkan İstanbul
• Veri, Dimension tablosu üzerinde birinci versiyondaki gibi doğrudan
güncellenir.
• Ek olarak history tablosunda değişiklik hareketleri tutulur.
S-Id Id Name Surname CurrentCity PreviousCity Flag Created Updated
1 13 Deniz Alkan Sivas İstanbul 0 2020-01-01 2020-12-13
2 13 Deniz Alkan Sivas Sivas 1 2020-12-13 NULL
Slowly Changing Dimension Nedir? | Alkanity

More Related Content

What's hot

Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overviewJames Serra
 
Automate and Optimize Data Warehouse Migration to Snowflake
Automate and Optimize Data Warehouse Migration to SnowflakeAutomate and Optimize Data Warehouse Migration to Snowflake
Automate and Optimize Data Warehouse Migration to SnowflakeImpetus Technologies
 
Data Migration Between MongoDB and Oracle
Data Migration Between MongoDB and OracleData Migration Between MongoDB and Oracle
Data Migration Between MongoDB and OracleChihYung(Raymond) Wu
 
Introduction to Data Warehouse
Introduction to Data WarehouseIntroduction to Data Warehouse
Introduction to Data WarehouseSOMASUNDARAM T
 
(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdf(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdfMobeenMasoudi
 
Speeding Time to Insight with a Modern ELT Approach
Speeding Time to Insight with a Modern ELT ApproachSpeeding Time to Insight with a Modern ELT Approach
Speeding Time to Insight with a Modern ELT ApproachDatabricks
 
Date warehousing concepts
Date warehousing conceptsDate warehousing concepts
Date warehousing conceptspcherukumalla
 
3 Keys To Successful Master Data Management - Final Presentation
3 Keys To Successful Master Data Management - Final Presentation3 Keys To Successful Master Data Management - Final Presentation
3 Keys To Successful Master Data Management - Final PresentationJames Chi
 
Why ODS? The Role Of The ODS In Today’s BI World And How Oracle Technology H...
Why ODS?  The Role Of The ODS In Today’s BI World And How Oracle Technology H...Why ODS?  The Role Of The ODS In Today’s BI World And How Oracle Technology H...
Why ODS? The Role Of The ODS In Today’s BI World And How Oracle Technology H...C. Scyphers
 
Data Warehouse Fundamentals
Data Warehouse FundamentalsData Warehouse Fundamentals
Data Warehouse FundamentalsRashmi Bhat
 
Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...
Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...
Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...Anastasija Nikiforova
 
An Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBAn Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBWilliam LaForest
 
Introduction to Data Vault Modeling
Introduction to Data Vault ModelingIntroduction to Data Vault Modeling
Introduction to Data Vault ModelingKent Graziano
 
Migrating Your Oracle Database to PostgreSQL - AWS Online Tech Talks
Migrating Your Oracle Database to PostgreSQL - AWS Online Tech TalksMigrating Your Oracle Database to PostgreSQL - AWS Online Tech Talks
Migrating Your Oracle Database to PostgreSQL - AWS Online Tech TalksAmazon Web Services
 
Modern Data Architecture
Modern Data Architecture Modern Data Architecture
Modern Data Architecture Mark Hewitt
 
Master Data Management
Master Data ManagementMaster Data Management
Master Data ManagementSabir Akhtar
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL DatabasesDerek Stainer
 

What's hot (20)

Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
Automate and Optimize Data Warehouse Migration to Snowflake
Automate and Optimize Data Warehouse Migration to SnowflakeAutomate and Optimize Data Warehouse Migration to Snowflake
Automate and Optimize Data Warehouse Migration to Snowflake
 
Data Migration Between MongoDB and Oracle
Data Migration Between MongoDB and OracleData Migration Between MongoDB and Oracle
Data Migration Between MongoDB and Oracle
 
Introduction to Data Warehouse
Introduction to Data WarehouseIntroduction to Data Warehouse
Introduction to Data Warehouse
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdf(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdf
 
Snowflake Overview
Snowflake OverviewSnowflake Overview
Snowflake Overview
 
Speeding Time to Insight with a Modern ELT Approach
Speeding Time to Insight with a Modern ELT ApproachSpeeding Time to Insight with a Modern ELT Approach
Speeding Time to Insight with a Modern ELT Approach
 
Date warehousing concepts
Date warehousing conceptsDate warehousing concepts
Date warehousing concepts
 
3 Keys To Successful Master Data Management - Final Presentation
3 Keys To Successful Master Data Management - Final Presentation3 Keys To Successful Master Data Management - Final Presentation
3 Keys To Successful Master Data Management - Final Presentation
 
Why ODS? The Role Of The ODS In Today’s BI World And How Oracle Technology H...
Why ODS?  The Role Of The ODS In Today’s BI World And How Oracle Technology H...Why ODS?  The Role Of The ODS In Today’s BI World And How Oracle Technology H...
Why ODS? The Role Of The ODS In Today’s BI World And How Oracle Technology H...
 
Data Warehouse Fundamentals
Data Warehouse FundamentalsData Warehouse Fundamentals
Data Warehouse Fundamentals
 
Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...
Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...
Data Lake or Data Warehouse? Data Cleaning or Data Wrangling? How to Ensure t...
 
An Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBAn Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDB
 
Introduction to Data Vault Modeling
Introduction to Data Vault ModelingIntroduction to Data Vault Modeling
Introduction to Data Vault Modeling
 
Elastic Data Warehousing
Elastic Data WarehousingElastic Data Warehousing
Elastic Data Warehousing
 
Migrating Your Oracle Database to PostgreSQL - AWS Online Tech Talks
Migrating Your Oracle Database to PostgreSQL - AWS Online Tech TalksMigrating Your Oracle Database to PostgreSQL - AWS Online Tech Talks
Migrating Your Oracle Database to PostgreSQL - AWS Online Tech Talks
 
Modern Data Architecture
Modern Data Architecture Modern Data Architecture
Modern Data Architecture
 
Master Data Management
Master Data ManagementMaster Data Management
Master Data Management
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
 

Slowly Changing Dimension Nedir? | Alkanity

  • 2. Fact ? Data Warehouse ? Dimension ?
  • 3. Slowly Changing Dimension • İlk olarak, Kimball tarafından ortaya atılmıştır. • Dimension tablolarındaki değişimleri yönetir. • 7 farklı versiyonu vardır. (1+3+3) • Versiyon 0 • Version 1,2,3 • Versiyon 4,5,6
  • 4. Örnek Müşteri Tablosu Id Name Surname City 13 Deniz Alkan İstanbul Sivas
  • 5. Versiyon 0 – Sabit Tablo Id Name Surname City 13 Deniz Alkan İstanbul Id Name Surname City 13 Deniz Alkan İstanbul • Yapılan değişiklikten etkilenmez. Değer sabit kalır.
  • 6. Versiyon 1 – Doğrudan Güncelle Id Name Surname City 13 Deniz Alkan İstanbul Id Name Surname City 13 Deniz Alkan Sivas • Yapılan değişiklik doğrudan mevcut verinin üzerine yazılır.
  • 7. Versiyon 2 – Satır Bazlı Güncelleme Id Name Surname City 13 Deniz Alkan İstanbul Id Name Surname City S_Id Flag Created Updated 13 Deniz Alkan İstanbul 1 0 2020-01-01 2020-12-13 13 Deniz Alkan Sivas 2 1 2020-12-13 NULL • Güncellenen veri, satır olarak eklenir.
  • 8. Versiyon 3 – Kolon Bazlı Güncelleme Id Name Surname City 13 Deniz Alkan İstanbul • Güncellenen veri, kolon olarak eklenir. Id Name Surname City PreviousCity 13 Deniz Alkan Sivas İstanbul
  • 9. Versiyon 4 – Tarihsel Tablo Kullanımı Id Name Surname City 13 Deniz Alkan İstanbul • Veri, Dimension tablosu üzerinde birinci versiyondaki gibi doğrudan güncellenir. • Ek olarak history tablosunda değişiklik hareketleri tutulur. Id Name Surname 13 Deniz Alkan + S_Id Id City Created 1 13 İstanbul 2020-01-01 2 13 Sivas 2020-12-13
  • 10. Versiyon 5 – Hybrid (4+1) Id Name Surname City 13 Deniz Alkan İstanbul • Veri, Dimension tablosu üzerinde birinci versiyondaki gibi doğrudan güncellenir. • Ek olarak history tablosunda değişiklik hareketleri tutulur. Id Name Surname City 13 Deniz Alkan Sivas + S_Id Id City Created 1 13 İstanbul 2020-01-01 2 13 Sivas 2020-12-13
  • 11. Versiyon 6 – Hybrid (1+2+3) Id Name Surname City 13 Deniz Alkan İstanbul • Veri, Dimension tablosu üzerinde birinci versiyondaki gibi doğrudan güncellenir. • Ek olarak history tablosunda değişiklik hareketleri tutulur. S-Id Id Name Surname CurrentCity PreviousCity Flag Created Updated 1 13 Deniz Alkan Sivas İstanbul 0 2020-01-01 2020-12-13 2 13 Deniz Alkan Sivas Sivas 1 2020-12-13 NULL