hello everyone
i've been working on my basketball database for a couple of months now. i'm pretty sure i've got the tables right. Just a few things before i tell you my tables.
This is just a pet project and it is based our the nbl(national league) and i'm just concentrating on the team stats and no player stats.
game
gameid(pk)
hometeam
awayteam
date
venueid
homeline(gambling term)
awayline
score
gameid(pk)
periodid
score
stats
gameid(pk)
teamid
fgm
fga
ftm
fta
3ptm
3pta
offreb
defreb
assist
steal
t/o
block
fouls
team
teamid(pk)
team
venue
venueid(pk)
venue
period
periodid(pk)
period
the thing is, i'm lost on relationship and how to join. would i be correct in saying that i have a one to many relationship for this database.
i'm lost on how you can have two pk cause i kept getting an error message but i think this had to do with the relationships.
can someone provide some help for my dilemma.
i've been working on my basketball database for a couple of months now. i'm pretty sure i've got the tables right. Just a few things before i tell you my tables.
This is just a pet project and it is based our the nbl(national league) and i'm just concentrating on the team stats and no player stats.
game
gameid(pk)
hometeam
awayteam
date
venueid
homeline(gambling term)
awayline
score
gameid(pk)
periodid
score
stats
gameid(pk)
teamid
fgm
fga
ftm
fta
3ptm
3pta
offreb
defreb
assist
steal
t/o
block
fouls
team
teamid(pk)
team
venue
venueid(pk)
venue
period
periodid(pk)
period
the thing is, i'm lost on relationship and how to join. would i be correct in saying that i have a one to many relationship for this database.
i'm lost on how you can have two pk cause i kept getting an error message but i think this had to do with the relationships.
can someone provide some help for my dilemma.