- General Information
- Entity Relationship Model
- Running the Program and Populating the Database
- Scope of Functionality
- Examples of Use
- Sources
- Contributors
The database created for this project contains data for european football (soccer) matches between 2008 and 2015. The database contains match, team, player, stadium, league, city and country information. The database is initialized and populated using SQL files and uses a command-line interface to access information and interact with database. The interface was created using the Java programming language.
- Before running the program, edit the
auth.cfg
file with your username and password to connect to the database server. - The program can be run using the command:
make run
- Once the program is running, type
init
to populate the database. The population process takes approximately 20 minutes so only do this once. - The database is now setup and ready to use!
The database interface implements the following queries:
init
- Initialize databasec <name>
- Search for a country populationci <name>
- Search for a city population and the country of the cityt <team acronym>
- Search for a team's full nametp <team acronym>
- Search for all players who have played for the teamp <name>
- Search for a player's birthday, height, weightpi <player ID>
- Search for player's name, birthday, height, weightpa <player ID>
- Search for player attributess <stadium ID>
- Search for stadium capacity, city name, country name, built datem <match ID>
- Search for season, league, date, home score, away score, home team name, away team namemt
- Gives top 5 players that have played for the most teamsmm
- Gives top 5 players that have played in the most matchesmg
- Gives top 5 teams with the most goals per matchmga
- Gives top 5 teams with the most goals against per matchmwt
- Gives top 5 teams with highest wins per matchmlt
- Gives top 5 teams with highest losses per matchts
< teamShortName >- Gives performance statistics of a teammus
- Gives top 5 most used stadiums for matches under a given capacityhgd
- Gives the team with the highest goal differential for each seasonlr
< country > < year > - Final league standings for country's league. Enter year between 2008 and 2015cfn
- Gives top 20 most common male professional soccer player first namescbm
- Gives percentage of players born in each month ranked from highest to lowestht
- Gives top 5 heaviest teamstt
- Gives top 5 tallest teams
Here are some examples of user inputs and program outputs using the command-line interface:
- input:
c Belgium
output:The population of Belgium is 11 million.
- input:
p Cristiano Ronaldo
output:Birthday of Cristiano ronaldo is 1985-02-05, player height is: 185cm, player weight is: 176lbs.
- input:
t MOU
output:Team Info ------------------------ Full Name: Royal Excel Mouscron League: Belgium Jupiler League Country: Belgium FIFA Video Game Team Attributes ------------------------------------------- buildUpPlaySpeed: 50 buildUpPlaySpeedClass: Balanced buildUpPlayDribbling 50 buildUpPlayDribblingClass: Normal buildUpPlayPassing: 50 buildUpPlayPassingClass: Mixed buildUpPlayPositioningClass: Organised chanceCreationPassing: 50 chanceCreationPassingClass: Normal chanceCreationCrossing: 50 chanceCreationCrossingClass: Normal chanceCreationShooting: 50 chanceCreationShootingClass: Normal defencePressure: 45 defencePressureClass: Medium defenceAggression: 45 defenceAggressionClass: Press defenceTeamWidth: 50 defenceTeamWidthClass: Normal defenceDefenderLineClass: Cover
- input:
mg
output:Teams with the most goals per match Short Name Long Name Goals Matches Played Goals Per Match ----------------------------------------------------------------------- BAR FC Barcelona 849 304 2.79 REA Real Madrid CF 843 304 2.77 PSV PSV 652 272 2.40 BMU FC Bayern Munich 653 272 2.40 AJA Ajax 647 272 2.38
- input:
ht
output:Top 5 Heaviest Teams Rank Team Name Average Weight (lbs) ------------------------------------------------- 1 1. FC Nürnberg 181.17 2 Wolverhampton Wanderers 180.31 3 FC Schalke 04 180.22 4 Portsmouth 179.75 5 FC St. Pauli 179.51
The sources for the project can be found at the following links
- https://www.kaggle.com/datasets/hugomathien/soccer
- https://en.wikipedia.org/wiki/List_of_cities_in_the_European_Union_by_population_within_city_limits
- https://en.wikipedia.org/wiki/List_of_European_stadiums_by_capacity
Safran Bin Kader, Colin McDonell, Ye Naing (Kelvin) Oo