The database wouldn't be needed for the scores of the games, just the individual player stats.
So I guess for me it would look something like this.
Code:
TABLE player (
pid
pfname
pname
);
TABLE opponent (
oid
oname
odate
olocation
);
TABLE stats (
sid
pid
oid
spoints
sassists
srebounds
);
and the data in the tables should look like this
Code:
Table player:
1, Michael, Jordan
2, Scottie, Pippen
3, Dennis, Rodman
Table spponent
1, Detroit, 20/11/96, home
2, Cleveland, 23/11/96, away
Table stats
1, 1, 1, 40, 7, 4
2, 2, 1, 26, 5, 6
3, 3, 1, 9, 3, 14
4, 1, 2, 49, 3, 6
5, 2, 2, 17, 7, 2
6, 3, 2, 11, 1, 12
Or is there another way to store this kind of data easily?
I think the stats table would get very big this way? maybe store the individual stats each in a seperate table?
Bookmarks