I have four tables in an online sports statistical programs as similar to as follows
[tt]
Table: Divisions
ID NAME
-- ----------
1 DIVISION A
2 DIVISION B
Table: Teams
ID NAME DIVISION_ID
-- ------- -----------
1 Team 1 1
2 Team 2 2
Table: Players
ID FIRST_NAME LAST_NAME TEAM_ID
-- ---------- --------- -------
1 JOHN DOE 1
2 JIM BOB 2
Table: Player_Stats
ID PLAYER_ID STAT1 STAT2
-- --------- ----- -----
1 1 5 3
2 2 6 2
[/tt]
What would be the simplest way to query the Player_Stats table by Division_ID when it is link three tables through the hirearchy or would it be simpler to update the Players table to include a Division_ID column to link individual players to a division through a shorter hirearchy?
[tt]
Table: Divisions
ID NAME
-- ----------
1 DIVISION A
2 DIVISION B
Table: Teams
ID NAME DIVISION_ID
-- ------- -----------
1 Team 1 1
2 Team 2 2
Table: Players
ID FIRST_NAME LAST_NAME TEAM_ID
-- ---------- --------- -------
1 JOHN DOE 1
2 JIM BOB 2
Table: Player_Stats
ID PLAYER_ID STAT1 STAT2
-- --------- ----- -----
1 1 5 3
2 2 6 2
[/tt]
What would be the simplest way to query the Player_Stats table by Division_ID when it is link three tables through the hirearchy or would it be simpler to update the Players table to include a Division_ID column to link individual players to a division through a shorter hirearchy?