Football DQ Lab
A SQL data-quality system that ingests a deliberately imperfect football database, then detects, classifies, tracks and resolves its errors.
- Status
- In progress
- My role
- Solo project
- Tools
- PostgreSQL, SQL
- Skills
- Database design, Synthetic data design, Validation rule design, Issue classification and tracking, Data quality reporting
- Data
- Synthetic data, designed with deliberate errors
Why I’m building it
At work I find and fix data problems one record at a time. Football DQ Lab is my attempt to turn that judgement into a system: rules that find problems automatically, classify them, and track each one until it is resolved.
The data
Real football data comes with licensing restrictions, so I designed my own. The database uses fictional clubs and people placed in real countries, with around 22,000 players and different coverage tiers by competition, mirroring how real providers have rich data for top leagues and sparse data for lower ones. It includes Castlebridge Albion FC, the fictional club from my club analytics project, as an English top-flight side.
The data is imperfect on purpose. Errors are planted so the system has something real to catch.
How it works
The pipeline follows the life of a data-quality issue:
- Ingest raw records into PostgreSQL.
- Validate them against rules.
- Detect records that break a rule.
- Classify each issue by type and severity.
- Track issues over time.
- Resolve them, recording what changed.
- Report on data quality across the database.
Status
In progress. I’ll document each stage here as it is built, with the SQL on GitHub.