union fieldingpost query
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
begin;
|
|
||||||
alter table fieldingpost drop column "teamID";
|
|
||||||
alter table fieldingpost drop column "lgID";
|
|
||||||
commit;
|
|
||||||
Reference in New Issue
Block a user