A
AEA
Hi, all,
I am creating a db for a school basketball league. I want to track team
stats per game, students stats per game, and games played.
I have the following tables and primary and foreign keys:
students-
pk: studentID fk: teams
studentGameStats (student stats per game)-
pks: studentID/GameID
gameDetails (game date, time, place)-
pk:Game ID
teams-
pk: teamID
teamGameStats(teams stats per game)-
pks: teamID/GameID
I have the game ID which can keep track of the student stats per game in one
table and the team stats in another table but I'm trying to relate the
student stats table and the team stats table so that I can show a team and
the players on the team for any particular game. I'm having a problem
relating these tables because they create a many to many relationship. How
can I resolve this issue and what would be the primary key(s).
Thanks for reading. Any suggestions would be appreciated.
AEA
(thought I posted this previously, but can't find it)
I am creating a db for a school basketball league. I want to track team
stats per game, students stats per game, and games played.
I have the following tables and primary and foreign keys:
students-
pk: studentID fk: teams
studentGameStats (student stats per game)-
pks: studentID/GameID
gameDetails (game date, time, place)-
pk:Game ID
teams-
pk: teamID
teamGameStats(teams stats per game)-
pks: teamID/GameID
I have the game ID which can keep track of the student stats per game in one
table and the team stats in another table but I'm trying to relate the
student stats table and the team stats table so that I can show a team and
the players on the team for any particular game. I'm having a problem
relating these tables because they create a many to many relationship. How
can I resolve this issue and what would be the primary key(s).
Thanks for reading. Any suggestions would be appreciated.
AEA
(thought I posted this previously, but can't find it)