I'm stuck on a certain problem on my database homework and was wondering if I could get some guidance. I am not looking for the answer, just a little nudge in the right direction. Here is the context:
Here is the actual problem:
My question: If each game played is identified by the home team, the visiting team and a date/time, why would there be a limit to the number of games that could be played? Shouldn't Team A be able to play Team B any number of times, provided the games don't overlap in space and time (physically impossible).
Attached: Image of the relationship.
Quote:
A youth soccer league has hired you to design a database to represent infor- mation about players, coaches, teams, and games. Each person (player or coach) has a unique ID, a name, and an e-mail address. A player also has an age, which is derived from his/her date of birth and a gender. There are several divisions, each with a unique name. Each team is in one division. Each team has a number that is unique within its division (e.g. team 3 of the girls age 12 and under division) and a uniform color. A team has between twelve and fteen players. A player can be on at most one team, a team has at least one coach, and a coach cannot coach more than one team. |
Quote:
Suppose we also want to keep track of games between teams, recording which teams play each other (consider them home team and visitor team), and the date and time when they play. One way to do this is with a relationship set plays shown in the attached diagram. This approach limits the number of times two teams can play against one another. Explain why. Show how to modify the design so that teams can play one another any number of times. |
Attached: Image of the relationship.