From 8d588eb8bad1c2b62177c9af60f8162fe0d7a620 Mon Sep 17 00:00:00 2001 From: Nick Griffey Date: Thu, 25 Jan 2024 21:08:32 -0600 Subject: [PATCH] Add more corrections --- sql/corrections/allstarfull.sql | 2 ++ sql/corrections/collegeplaying.sql | 11 +++++++++++ sql/corrections/parks.sql | 8 ++++++++ sql/corrections/people.sql | 7 +++++++ sql/corrections/schools.sql | 6 ++++++ 5 files changed, 34 insertions(+) create mode 100644 sql/corrections/collegeplaying.sql create mode 100644 sql/corrections/parks.sql create mode 100644 sql/corrections/people.sql create mode 100644 sql/corrections/schools.sql diff --git a/sql/corrections/allstarfull.sql b/sql/corrections/allstarfull.sql index e3afaf8..9ad9520 100644 --- a/sql/corrections/allstarfull.sql +++ b/sql/corrections/allstarfull.sql @@ -1,4 +1,5 @@ begin; +-- fix game numbers for 1962 all-star games update allstarfull set gamenum = 1 where gameid = 'ALS196207100'; @@ -7,6 +8,7 @@ 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'; commit; diff --git a/sql/corrections/collegeplaying.sql b/sql/corrections/collegeplaying.sql new file mode 100644 index 0000000..a44b406 --- /dev/null +++ b/sql/corrections/collegeplaying.sql @@ -0,0 +1,11 @@ +begin; +-- fix school id +update collegeplaying +set schoolID = 'cwpost' +where schoolID = 'ctpostu'; + +-- baseball almanac says Dick Woodson didn't play in college, and i can't find +-- another source that says otherwise +delete from collegeplaying +where playerid = 'woodsdi01'; +commit; diff --git a/sql/corrections/parks.sql b/sql/corrections/parks.sql new file mode 100644 index 0000000..5509da9 --- /dev/null +++ b/sql/corrections/parks.sql @@ -0,0 +1,8 @@ +begin; +-- insert some missing parks +insert into parks values +('ARL03', 'Globe Life Field', null, 'Arlington', 'TX', 'US'), +('BUF05', 'Sahlen Field', null, 'Buffalo', 'NY', 'US'), +('DUN01', 'TD Ballpark', null, 'Dunedin', 'FL', 'US'), +('DYE01', 'Field of Dreams', null, 'Dyersville', 'IA', 'US'); +commit; diff --git a/sql/corrections/people.sql b/sql/corrections/people.sql new file mode 100644 index 0000000..e47d893 --- /dev/null +++ b/sql/corrections/people.sql @@ -0,0 +1,7 @@ +begin; +-- insert some missing people +insert into people values +('millema99', 1917, 4, 14, 'USA', 'NY', 'Brooklyn', 2012, 11, 27, 'USA', 'NY', 'Manhattan', 'Marvin', 'Miller', 'Marvin Julian', null, null, null, null, null, null, null, 'millema99'), +('fowlebu99', 1858, 3, 16, 'USA', 'NY', 'Fort Plain', 1913, 2, 26, 'USA', 'NY', 'Frankfort', 'Bud', 'Fowler', 'John W. Jackson', 155, 67, 'R', 'R', null, null, null, 'fowlebu99'), +('thompan01', null, null, null, null, null, null, null, null, null, null, null, null, null, 'Thompson', null, null, null, null, null, '1875-04-26', '1875-05-17', null, 'thompan01'); +commit; diff --git a/sql/corrections/schools.sql b/sql/corrections/schools.sql new file mode 100644 index 0000000..3cd7aff --- /dev/null +++ b/sql/corrections/schools.sql @@ -0,0 +1,6 @@ +begin; +-- insert some missing schools +insert into schools values +('txutper', 'University of Texas Permian Basin', 'Odessa', 'TX', 'USA'), +('txrange', 'Ranger College', 'Ranger', 'TX', 'USA'); +commit;