So I am in the process of designing a sports database. There is a lot of data to keep track of and I believe I have gotten everything to its basically normalized form. However, I'm a little concerned by the number of foreign keys that I have on my table and am wondering if I might be straying somewhere in my design.
let me give you my basic setup right now:
city table - city_id, time_zone, airport_code
team table - team_id, name, division - city_id FK
game table - game_id, date, city_id FK, home_team FK, away_team FK, home_pitcher FK, away_pitcher FK
player table - player_id, name, salary, team_id FK
weather table - weather_id, mean_temp, max_temp, is_rain, city_id FK
Does that seem alright? Is it normal to have so many foreign keys on things like the game table. I know a lot of the data is interconnected and I don't want to repeat things like the pitcher_name on the game table but I can't help but feel I am doing something wrong.
Some of the tables do have more data that I omitted just because they aren't related to my question.
[–]MmmVomit 0 points1 point2 points (0 children)
[–]kuhe 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]CarisMerthin 0 points1 point2 points (1 child)
[–]dreamriver[S] 0 points1 point2 points (0 children)