I am trying to create a database to store player statistics for various sports.
In the database you will have a bunch of players. Each player belongs to one team, and each team plays in one sport. Here are the tables that I have for this part:
Player (Player_ID, Team_ID, FirstName, LastName)
Team (Team_ID, Sport_ID, TeamName)
Sport (Sport_ID, SportName)
Now I want to save player statistics. I encounter a problem when different players play different sports and therefore must keep different types of statistics for each sport. If I kept hockey players and baseball players, for example:
for hockey players I want to keep goals and help
for baseball players I want to keep hits, home runs and RBIs.
Is there a way to do something like this using a single database? Did I even start right?
source
share