Skip to content

Simple database regarding a soccer league in PostgreSQL [2018]

License

Notifications You must be signed in to change notification settings

plkpiotr/soccer-league

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soccer league

Entity Relationship Diagram

erd

Description

Project written because of Database systems classes taking place in the seventh semester in the field of study of "Automatics and robotics" at the AGH University of Science and Technology in Cracow.

Project structure

create.sqldrop.sqlinsert.sql
│
└───queries:
        all-dutchmen.sql
        at-least-two-assists-in-one-match.sql
        attendance-less-than-half.sql
        best-assists.sql
        goals-of-teams.sql
        hungarias-poles-russians.sql
        psq-away.sql
        sum-assists.sql
        wisla-cracow-matches.sql
        won-home.sql

Features

create.sql creates 6 entities connected 9 relations [stadiums, teams, players, matches, results and scores].

insert.sql adds rows to these tables - 12 stadiums and teams, 11 players to each team and results of 24 matches with details.

drop.sql deletes all of data.

Remaining SQL scripts form the basis further work on the database.

How to run?

Enter into terminal: psql -U postgres -f create.sql to create tables.

Then: psql -U postgres -f insert.sql to add default data.

Comments

PDF report in Polish

License

MIT

About

Simple database regarding a soccer league in PostgreSQL [2018]

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages