Netflix title history (SCD2)
Make the title dimension Type 2 so viewing reflects the metadata in effect when it happened.
Concept
slowly-changing-dimensions
The primary modeling idea this problem reinforces.
Requirements
0
Business needs the model must satisfy.
Title metadata (maturity rating and category) changes over time. Analysts want viewing analyzed against the metadata as it was when the view occurred. The current title dimension overwrites metadata in place.
Overwriting metadata makes past viewing look like it had today’s rating or category. A Type 2 title dimension preserves each version with a validity window.
Template
The model users start from in the full workspace.
Entities
0
Seeded tables visible in the public preview.
Dialect
postgresql
Generated SQL target for this starter model.
This preview is read-only. Open the workspace to edit and verify; saving needs a free account.
Open workspaceTry the question first.
The discussion has other people's approaches and solutions. Give it a real attempt before you read them.