Skip to content

Data analyst : Queries to get information from the database European Soccer Dataset using PostgreSql

License

Notifications You must be signed in to change notification settings

Giuseppe-Bonifati/European-Soccer-Dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Data analyst : Queries to get information from the database European Soccer Dataset using PostgreSql

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published