correct team codes

This commit is contained in:
Nick Griffey 2024-01-29 20:55:27 -06:00
parent 9581cc7dea
commit 81e7471c12
1 changed files with 22 additions and 0 deletions

View File

@ -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;