01The test_02 data and what's hiding in it
dsc3103_test_02 gives you milk_clean.parquet (20,000 deliveries, MarchβAugust 2026), centres.csv (5 centres with a daily capacity_litres) and farmers.csv (294 registered farmers). You build dim_date, dim_centre, dim_farmer and fact_delivery, then answer analytics questions in DuckDB.
The traps are in the data, not the SQL syntax:
- 300 distinct
farmer_ids appear in the deliveries but only 294 are registered β 6 farmers, 408 deliveries, have no dimension row. capacity_litresis a limit per day, but the biggest single delivery is 46.8 L β so any row-by-row comparison finds nothing.- A farmer can move to another centre mid-season (July), which changes how "top farmers per centre" should be counted.