Building dbt snapshot models
We've focused on building and debugging mart models to simplify SQL queries by pre-transforming tables to be unique by customer and product.
Another type of transformation that is helpful to bake into a dbt model are snapshot models. Just like the name infers, these models take snapshots of the data so that it is always possible for your end user to travel back in time and see what the state of the data is like as of a certain date.
In this exercise, you will build two snapshot models, one to track daily order changes, and another to track daily inventory changes. This will help your end user answer questions such as:
- How has my inventory changed over time?
- How has my order volume changed over time?
Diese Übung ist Teil des Kurses
Case Study: Building E-Commerce Data Models with dbt
Interaktive Übung
In dieser interaktiven Übung kannst du die Theorie in die Praxis umsetzen.
Übung starten