From 1e643ed92b7aca6b3ff7808a1240b1fbc2bb0c98 Mon Sep 17 00:00:00 2001 From: sanchezg7 Date: Wed, 30 Jul 2025 18:07:16 -0400 Subject: [PATCH] Update load_players_table_day2.sql to match players schema `player_seasons.sql` defines the schema as having `season` as the last column. This change updates the seed script for the day 2 lecture to be correct. Otherwise, the seed script will not work due to a type mismatch. --- .../sql/load_players_table_day2.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootcamp/materials/1-dimensional-data-modeling/sql/load_players_table_day2.sql b/bootcamp/materials/1-dimensional-data-modeling/sql/load_players_table_day2.sql index bb6e32d42..7995f28f1 100644 --- a/bootcamp/materials/1-dimensional-data-modeling/sql/load_players_table_day2.sql +++ b/bootcamp/materials/1-dimensional-data-modeling/sql/load_players_table_day2.sql @@ -65,8 +65,8 @@ SELECT ELSE 'bad' END::scoring_class AS scoring_class, w.season - (seasons[CARDINALITY(seasons)]::season_stats).season as years_since_last_active, - w.season, - (seasons[CARDINALITY(seasons)]::season_stats).season = season AS is_active + (seasons[CARDINALITY(seasons)]::season_stats).season = season AS is_active, + w.season FROM windowed w JOIN static s - ON w.player_name = s.player_name; \ No newline at end of file + ON w.player_name = s.player_name;