Skip to content

Latest commit

 

History

History
89 lines (44 loc) · 3.72 KB

README.md

File metadata and controls

89 lines (44 loc) · 3.72 KB

European Soccer Dataset ⚽ 📊

Introduction

We will be working with the soccer database from kaggle : https://www.kaggle.com/hugomathien/soccer. It contains data for soccer matches, players, and teams from several European countries from 2007/2008 to 2015/2016 (Some players are not available in year 2016). In the file query.sql there are all the queries to get informations from the db.

Prerequisites

▪️ DBeaver

▪️ PostgreSQL

▪️ SQL Shell (psql)

Database

European Soccer Database

Link to download sqlite db : https://www.kaggle.com/hugomathien/soccer .

With DBeaver we can migrate from SQLite database to PostgreSQL database, and we can convert the datatype of the column date in every table from text to timestamp.

Usage

All the queries are in the file query.sql

We use SQL shell (psql) to connect to the database and run the queries

Type in psql the following command

\i C:/some/path/query.sql

❗ Please not that also in Windows we need to use the slashes (/) instead of blackslashes

Queries result

Players with the most overall rating value from 2007/2008 to 2015/2016

image

Top 10 players with the highest overall rating in the year 2012

image

Messi overall rating history

image

Messi vs C.Ronaldo overall ratings compared

image

The player with the highest visual value

image

Teams with the best chance of creation passing

image

For each leagues the Teams with more goals scored home in the season 2015/2016

image

Italy Serie A teams with more goals scored home from the season 2008 till 2016

image

Italy Serie A Inter home wins in the season 2009/2010

image

License