I am building a mysql database to store golf scores.
I am not sure on the best approach to store the round information.
Each round is made up of either 9 or 18 holes and for each hole I need to store
- Hole id
- Number of shots
- Stableford points
- Green in regulation
- Fairway hit
- Number of putts
- Number of penalty shots
My question is should I have one huge table, that stores all of this. Like a rounds
table. and have the above 7 fields 18 times for each hole.
Or should I have a smaller rounds
table that just contains the date played etc and then another table such as scores
that just has the 7 fields, and have multiple rows in that table to make up the complete round?
I guess I am asking in terms of which would perform better and which is the better design?
Thanks