Skip to main content

Master data engineering by fixing real incidents.

Start from Exercise 01 (duplicate primary keys) and move step by step through joins, dimensional modeling, and a £170M banking ledger drift. Sign in free with Google to run queries, track your progress, and connect your Databricks environment.

SQL trace notebook
Lab 02: Cash ISA category overlap

Product v2 launched on July 1, and joining on product_code alone forced 3,000 Savings accounts to match multiple catalog versions.

Compare query logic
-- Missing temporal validity date check
SELECT
  b.account_id,
  b.balance_date,
  b.ledger_balance,
  p.category_l1
FROM silver.core_balances b
JOIN silver.core_accounts a ON b.account_id = a.account_id
JOIN silver.product_catalog p
  ON a.product_code = p.product_code
WHERE b.balance_date = '2026-05-31';
Assertion failed (1/4 checks)0.22s
3,000 Cash ISA accounts misclassified: -£8,000,000 board pack variance.
Solve Lab 02 in workbench →

Clean spreadsheet tutorials never prepare you for Monday morning outages. Practice fixing broken joins, missing nulls, and schema drift right in your browser.

A single path from Exercise 01 to production capstones

Start with duplicate primary keys in Exercise 01, then progress through joins, Lakehouse modeling, data contracts, and real incident forensics.

Analytics Foundations & SQL Basics

6 labs

Start from duplicate primary keys, decimal currency types, null handling, join fan-out repairs, and window rankings right in your browser.

Open track→

Dimensional Modeling & SCD History

13 labs

Design Ralph Kimball star schemas, apply Delta liquid clustering, and write temporal validity joins that eliminate balance drift.

Open track→

Data Quality, Lineage & ODCS Contracts

20+ labs

Author schema-valid Bitol ODCS v3.0.2 YAML contracts, trace source-to-target lineage, and enforce ISO 8000 quality assertions.

Open track→

SQL Detective Production Capstones

3 cases • £170M / $800K

Reconcile a £170M retail bank ledger overlap, recover 42,000 duplicated streaming orders, and migrate TICKIT onto Delta Lake.

View capstones→
Compute waste

Single key skew triggers shuffle spill and 92 minute job lag

High volume payment events partitioned strictly by timestamp produced 30,000 tiny files while joins on merchant_id stalled two worker cores.

Production antipatternDelta SQL
-- ANTIPATTERN: Partitioning on high-frequency timestamps creates
-- severe small-file sprawl and shuffle skew during merchant joins
CREATE OR REPLACE TABLE silver.customer_payments (
  payment_id STRING,
  account_id STRING,
  merchant_id STRING,
  payment_amount DECIMAL(18, 2),
  event_timestamp TIMESTAMP
)
USING DELTA
PARTITIONED BY (event_timestamp);

SELECT p.merchant_id, SUM(p.payment_amount) AS total_volume
FROM silver.customer_payments p
JOIN gold.dim_merchants m ON p.merchant_id = m.merchant_id
GROUP BY p.merchant_id;
Failure outcome
92 min runtime • Executor OOM crash

Why it breaks in production

Directory partitioning breaks down once distinct key counts create tens of thousands of tiny subdirectories, forcing heavy driver listing and uneven shuffle partitions.

Takeaway: Prefer Liquid Clustering (CLUSTER BY) over PARTITIONED BY for skewed join keys and evolving filter queries.
Test this bug interactively in the workbenchOpen lab EX-1

Three steps from concept to verified SQL

01

Read plain English mechanics

Start in DynaAcademy with everyday analogies, before and after sample tables, and 3-question comprehension checks before touching syntax.

Read 20 Academy guides→
02

Fix broken SQL in your browser

Run queries directly in our WebAssembly SQL engine with instant assertion feedback, or verify live against your own Databricks warehouse.

Browse 52 practice labs→
03

Sketch schemas & size clusters

Model entities visually on the interactive ERD canvas, export ODCS YAML contracts, and size Spark executor memory without spills.

Open Data Modeler→

Clear answers before you start

Is everything really free?

Yes. All 52 interactive labs, 20 Academy guides, 3 detective capstones, the visual Data Modeler, and Spark Sizing Lab are 100% free in Community Edition.

Why is Google sign-in required to run queries?

Signing in with Google is free and takes one click. It tracks your progress across all 52 labs and allows you to run jobs on your own Databricks environment.

Where should I start?

Everyone starts at Exercise 01 (Duplicate Primary Keys) and moves forward step by step—each lab builds cleanly on the previous one.

Ready to solve your first incident?

All 52 labs, 20 Academy guides, and 3 forensic capstones run free in your browser. Optional Google sign in saves your progress across devices.

Start Exercise 01 free