lahmanlite/sql/allstarstartingpos.sql

28 lines
687 B
MySQL
Raw Normal View History

2024-01-30 02:34:07 +00:00
begin;
alter table allstarfull rename to "allstarstartingpos";
-- fix game numbers for 1962 all-star games
update allstarstartingpos
set gamenum = 1
where gameid = 'ALS196207100';
update allstarstartingpos
set gamenum = 2
where gameid = 'NLS196207300';
2024-01-31 02:30:24 +00:00
-- rocky colavito was a reserve, not starter
delete from allstarstartingpos
where gameid = 'ALS196207100' and playerid = 'colavro01';
2024-01-30 02:34:07 +00:00
alter table allstarstartingpos drop column "gameID";
alter table allstarstartingpos drop column "teamid";
alter table allstarstartingpos drop column "gp";
update allstarstartingpos
set startingpos = null
where startingpos = '';
delete from allstarstartingpos
where startingpos is null;
commit;