-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.proposal.txt
52 lines (42 loc) · 1.18 KB
/
README.proposal.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Team Databses are Awesome
Abby Schmiedt [email protected]
Alexis Fraga [email protected]
Jacob Rickman [email protected]
Kick It!
We plan on creating a CRUD application that will allow anyone to modify the European Soccer
teams and matches played between 2008 and 2016. From this data the user will be
able to view:
- Average points per match for a team
- Percentage home games won vs away games won for each team
- Which country has the most winning teams.
-- Databse Schema --
CREATE TABLE Country(
Name varchar(20),
Id int PRIMARY KEY
);
CREATE TABLE League(
Name varchar(20),
CountryId int,
Id int PRIMARY KEY,
FOREIGN KEY(CountryId) REFERENCES Country(Id)
);
CREATE TABLE Team(
TeamId int PRIMARY KEY,
TeamName varchar(50),
TeamShort varchar(20)
);
CREATE TABLE Matches(
Id int PRIMARY KEY,
CountryId int,
LeagueId int,
Season char(10),
MatchDate Date,
HomeTeamId Int,
AwayTeamId Int,
HomeScore Int,
AwayScore Int,
FOREIGN KEY(HomeTeamId) REFERENCES Team(TeamId),
FOREIGN KEY(AwayTeamId) REFERENCES Team(TeamId)
);
The dataset comes from the website Kaggle.com which contains a large library of open source
datasets.