From dd968797d8d3983bea0199a8029cc560ce1c0fea Mon Sep 17 00:00:00 2001 From: Nick Griffey Date: Sat, 27 Jan 2024 12:39:41 -0600 Subject: [PATCH] union fieldingpost query --- sql/2nf/appearancespost.sql | 8 +++++++- sql/2nf/fieldingpost.sql | 4 ---- 2 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 sql/2nf/fieldingpost.sql diff --git a/sql/2nf/appearancespost.sql b/sql/2nf/appearancespost.sql index 116cd60..66fc8f1 100644 --- a/sql/2nf/appearancespost.sql +++ b/sql/2nf/appearancespost.sql @@ -11,11 +11,17 @@ select distinct yearID, playerID, teamID from battingpost union select distinct yearID, playerID, teamID -from pitchingpost; +from pitchingpost +union +select distinct yearID, playerID, teamID +from fieldingpost; alter table "battingpost" drop column "teamID"; alter table "battingpost" drop column "lgID"; alter table "pitchingpost" drop column "teamID"; alter table "pitchingpost" drop column "lgID"; + +alter table fieldingpost drop column "teamID"; +alter table fieldingpost drop column "lgID"; commit; diff --git a/sql/2nf/fieldingpost.sql b/sql/2nf/fieldingpost.sql deleted file mode 100644 index e9b5b92..0000000 --- a/sql/2nf/fieldingpost.sql +++ /dev/null @@ -1,4 +0,0 @@ -begin; -alter table fieldingpost drop column "teamID"; -alter table fieldingpost drop column "lgID"; -commit;