Overview - Snapshot tables for historical tracking
What is it?
Snapshot tables are special tables that keep a history of changes in your data over time. Instead of just showing the latest data, they store every version of a record when it changes. This helps you track how data looked at different points in the past. In dbt, snapshot tables automate this process by capturing changes during each run.
Why it matters
Without snapshot tables, you lose the story of how your data evolved. This makes it hard to analyze trends, audit changes, or fix mistakes. Snapshot tables let you answer questions like 'What was the status last month?' or 'When did this value change?'. They make your data trustworthy and useful for historical analysis.
Where it fits
Before learning snapshot tables, you should understand basic SQL and dbt models. After mastering snapshots, you can explore advanced data versioning, slowly changing dimensions, and time travel queries in data warehouses.