New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
A join between orders and customers is dropping rows, and nobody noticed until finance asked why the numbers didn't add up.
What you'll have at the end
A relationships test on the customer id column that fails the build the moment an order points at a customer that doesn't exist.
You need
A dbt project with a fact model whose foreign key column, such as a customer id on an orders model, should always match a row in a dimension model, plus a target you can run tests against without touching anyone else's data.
Not covered
Fixing why customer records sometimes land after the orders that reference them, or building a placeholder dimension row so a late order always has something valid to point at.
Leans on
Checked 25 Aug 2026
Part of the dbt (Data Build Tool) cookbook