From 81e7471c128c79c2bff7797ec440860b367d1bae Mon Sep 17 00:00:00 2001 From: Nick Griffey Date: Mon, 29 Jan 2024 20:55:27 -0600 Subject: [PATCH] correct team codes --- sql/allstars.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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;