An open API service indexing awesome lists of open source software.

https://github.com/danzigerrr/sql_triathlon_database


https://github.com/danzigerrr/sql_triathlon_database

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# SQL Triathlon Database

## Description
This project was created as a part of “Databases” classes on Gdańsk University of Technology. It contains SQL code to create the tables, insert data into them as well as to delete the data.

The final report is uploaded to this repository as "*Final Raport DB Project KN.pdf*"

## 1. The goal of the project
The goal of design and implementation of the database is to develop technology in the model of adding to this situation using diagrams of service points, in the implementation of a diagram in the form of a relational database, in conjunction with the formulation of interactive data to the database in SQL, and in planning and this database transaction procedure. During the course, the student has three tasks - all of them are based on the same topic selected at the beginning of the project activities.
The report of the project consists of 3 major parts:
1. Assumptions
2. ERD with description
3. Sample SELECT queries

## Assumptions
### Client
Polish Triathlon Association

### Client's goal and requirements
The database is to improve the development process of future representatives in Triathlon competitions. The database enables the player to be analyzed in terms of the training plan consisting of training, recovery and diet, and how these three aspects affect the results achieved. Thanks to this, trainers can analyze individual aspects and draw conclusions in order to train better and better staff.

### Basic functions:
• statistics on the athlete's performance, sleep, diet and recovery

• information about individual coaches and players

• creating rankings of players and coaches

• easy way to add more achievements

• Seasonal summary of player and coach performance

### Exclusions:
• It is not possible to analyze information on the difficulty level and terrain of the competition route

• It is not possible to analyze the influence of weather conditions on the results of the competition

• It is not possible to analyze how the prize for the competition influenced the motivation and performance of the competitor

• It is not possible to analyze the mental state before and after the competition

• Only the currently used training plan is analyzed

### Usage scenarios:
• player's and coach's recent success story

• a list of the best coaches and players

• athlete's diet

• introducing new players and coaches

• preview of the players' training plans and the precise period of their use

### Sample inquiries:
• At what distances the competitors take part in the competition most often

• A list of athletes whose diet calories exceed 4000 kcal

• List of trainers with training plans and the number of plans they are authors

• the average length of training for given body parts

• the average calorific value of the diet in women between 18 and 40 years of age

## Entity-Relationship Diagram (ERD)

![obraz](https://user-images.githubusercontent.com/72522808/193752257-a30d163d-639d-4663-93b6-b0ed58d6efc9.png)

## Sample SELECTs

![obraz](https://user-images.githubusercontent.com/72522808/193752354-649641a7-2b43-46ef-a97a-e0570cf71918.png)

![obraz](https://user-images.githubusercontent.com/72522808/193752401-bdd16acc-a8a4-4e8d-87f2-a74ecc64e34f.png)

![obraz](https://user-images.githubusercontent.com/72522808/193752423-f4b96605-9f77-4339-9000-d32819d334a9.png)

![obraz](https://user-images.githubusercontent.com/72522808/193752435-790f3df2-426d-4132-9ff3-338b6ed2ead5.png)