lahmanlite/sql/allstarstartingpos.sql

25 lines
603 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';
alter table allstarstartingpos drop column "gameID";
alter table allstarstartingpos drop column "teamid";
alter table allstarstartingpos drop column "lgID";
alter table allstarstartingpos drop column "gp";
update allstarstartingpos
set startingpos = null
where startingpos = '';
delete from allstarstartingpos
where startingpos is null;
commit;