union fieldingpost query

This commit is contained in:
Nick Griffey 2024-01-27 12:39:41 -06:00
parent 8ba209aea4
commit dd968797d8
2 changed files with 7 additions and 5 deletions

View File

@ -11,11 +11,17 @@ select distinct yearID, playerID, teamID
from battingpost from battingpost
union union
select distinct yearID, playerID, teamID 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 "teamID";
alter table "battingpost" drop column "lgID"; alter table "battingpost" drop column "lgID";
alter table "pitchingpost" drop column "teamID"; alter table "pitchingpost" drop column "teamID";
alter table "pitchingpost" drop column "lgID"; alter table "pitchingpost" drop column "lgID";
alter table fieldingpost drop column "teamID";
alter table fieldingpost drop column "lgID";
commit; commit;

View File

@ -1,4 +0,0 @@
begin;
alter table fieldingpost drop column "teamID";
alter table fieldingpost drop column "lgID";
commit;