G
Guest
Hello,
I would like to create a scheduling database for football games which also
would contain the data on selected stats. Two design questions:
1. Is it best to have the schedule data separate from the stats?
i.e. one possible design scenario:
Schedule Table
gameId | Hteam | ATeam | DateOfGame |
Stats/Score Table
gameId | HScore | AScore | HPassingYds | APassingYds | HrushingYds |
ARushingYds
Another design scenario would be:
gameId | Team | HomeAway | Date | Score | Passing Yds | RushingYds
1 A away 9/10 23 345
89
1 B home 9/10 27 256
202
I was leaning towards this option so it would make for easier loading of
data but the queries may be a bit more complex.
any thoughts?
I would like to create a scheduling database for football games which also
would contain the data on selected stats. Two design questions:
1. Is it best to have the schedule data separate from the stats?
i.e. one possible design scenario:
Schedule Table
gameId | Hteam | ATeam | DateOfGame |
Stats/Score Table
gameId | HScore | AScore | HPassingYds | APassingYds | HrushingYds |
ARushingYds
Another design scenario would be:
gameId | Team | HomeAway | Date | Score | Passing Yds | RushingYds
1 A away 9/10 23 345
89
1 B home 9/10 27 256
202
I was leaning towards this option so it would make for easier loading of
data but the queries may be a bit more complex.
any thoughts?