From 983798d2004d901aac7fb7db85429b44c52e148e Mon Sep 17 00:00:00 2001 From: Nick Griffey Date: Sat, 27 Jan 2024 13:07:23 -0600 Subject: [PATCH] Clean up starting pos data --- sql/2nf/allstarfull.sql | 3 +++ sql/corrections/allstarfull.sql | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/sql/2nf/allstarfull.sql b/sql/2nf/allstarfull.sql index 0b3c13f..9c4fb87 100644 --- a/sql/2nf/allstarfull.sql +++ b/sql/2nf/allstarfull.sql @@ -31,4 +31,7 @@ from allstarstartingpos; alter table allstarstartingpos drop column "teamid"; alter table allstarstartingpos drop column "lgID"; alter table allstarstartingpos drop column "gp"; + +delete from allstarstartingpos +where startingpos is null; commit; diff --git a/sql/corrections/allstarfull.sql b/sql/corrections/allstarfull.sql index 0585ca6..ee3d552 100644 --- a/sql/corrections/allstarfull.sql +++ b/sql/corrections/allstarfull.sql @@ -16,4 +16,8 @@ where playerid = 'freesda01' and yearid = 2012 and lgid = 'AL'; update allstarfull set gameid = null where gameid = ''; + +update allstarfull +set startingpos = null +where startingpos = ''; commit;