diff --git a/sql/allstars.sql b/sql/allstars.sql index 166a7f9..5e404b5 100644 --- a/sql/allstars.sql +++ b/sql/allstars.sql @@ -23,4 +23,26 @@ set gamenum = 2 where gameid = 'NLS196207300'; alter table allstars drop column "gameid"; + +-- correct team codes for whole seasons +update allstars +set team = 'ANA' +where year between 1997 and 2004 and team = 'LAA'; + +update allstars +set team = 'ML4' +where year between 1970 and 1997 and team = 'MIL'; + +update allstars +set team = 'ML1' +where year between 1953 and 1965 and team = 'MLN'; + +-- correct team codes for one-off errors +update allstars +set team = 'NYA' +where player = 'chapmbe01' and year = 1933; + +update allstars +set team = 'ATL' +where player = 'contrwi02' and year = 2022; end;