lahmanlite/sql/corrections/allstarfull.sql

24 lines
531 B
PL/PgSQL

begin;
-- fix game numbers for 1962 all-star games
update allstarfull
set gamenum = 1
where gameid = 'ALS196207100';
update allstarfull
set gamenum = 2
where gameid = 'NLS196207300';
-- david freese has two all-star entries for 2012, one in AL
delete from allstarfull
where playerid = 'freesda01' and yearid = 2012 and lgid = 'AL';
-- 1945 all-star game wasn't played so some rows have no game id
update allstarfull
set gameid = null
where gameid = '';
update allstarfull
set startingpos = null
where startingpos = '';
commit;