Snapshot tables for historical tracking
📖 Scenario: Imagine you work for an online store. You want to keep track of how product prices change over time. This helps you see price trends and understand when prices go up or down.
🎯 Goal: You will create a dbt snapshot to track changes in product prices over time. This snapshot will store historical versions of product data so you can analyze price changes later.
📋 What You'll Learn
Create a source table with product data
Define a snapshot configuration with unique key and strategy
Write the snapshot SQL to track price changes
Run the snapshot and display the historical data
💡 Why This Matters
🌍 Real World
Snapshot tables help businesses track how data changes over time, like price changes, customer info updates, or inventory levels.
💼 Career
Data analysts and engineers use snapshots to build historical datasets for reporting, auditing, and trend analysis.
Progress0 / 4 steps