Football Stats Database Design Q

Soldato
Joined
5 Dec 2003
Posts
2,716
Location
Glasgow
Hey, I'm trying to make a football stats site for my team. Just working out how to get all the info in a database, obviously I will have a Players table with a record for each player and a Fixture table but I'm not sure how to store things like each player that played in a fixture as it would need 11+ entries? I would probably need a 3rd table called Squad with just a list of player IDs linking to each player? And also goals and the time they are scored which would allow me to search and filter based on say all games when we have scored in the last 5 mins or a certain player has scored a hat-trick?
 
I was looking at doing something similar a while ago.
I never got very far with it though due to lack of time.

I did produce a database diagram for it though, which may be of use to you.
It's possibly a bit more complicated that you need, so remove what you don't need. You may want to denormalise some things as well, e.g. putting a team id in the goals table as using that model it's a bit of a pain to actually find which team a goal is for!

footballij0.gif
 
I was looking at doing something similar a while ago.
I never got very far with it though due to lack of time.

I did produce a database diagram for it though, which may be of use to you.
It's possibly a bit more complicated that you need, so remove what you don't need. You may want to denormalise some things as well, e.g. putting a team id in the goals table as using that model it's a bit of a pain to actually find which team a goal is for!

footballij0.gif

Just outta interest, what did you use to create that design. I'm forced to use SSADM at the minute, but that looks way better.
 
Back
Top Bottom