Slowly changing dimensions
A customer changes their address, a sales rep moves territory, a product gets re-categorized - and suddenly last quarter's numbers don't reconcile, because the dimension that described the old world got overwritten in place. Slowly changing dimensions are how you decide, per attribute, whether history is preserved or thrown away.
The hard part was never the SQL. It is knowing why a Type 2 dimension fans out your fact joins, when a Type 1 silently rewrites the past, and how effective-dating and bitemporal corrections keep 'what did we know, and when' answerable. Get the type wrong and every downstream metric inherits the mistake.
Where it's taught
Related topics
Start learning slowly changing dimensions free
The first chapter of every course is free to read — no account needed.