I love soccer stats. So I built a SQL database with every Premier League match since 1992—over 20,000 games from Kaggle. The goal was to answer questions like "who's best at home?" or "biggest away wins" without manually crunching spreadsheets.
I used a Kaggle dataset that includes all Premier League matches up to the current date. The main challenge was interpreting the FTR (Full Time Result) column, which only stores three values:
I created a custom function to translate these into wins, losses, and draws for each team:
The database aggregates these results into tables showing teams with the best home records, best away records, and overall most wins.