lahmanlite/sql/appearancespost.sql

20 lines
390 B
MySQL
Raw Normal View History

2024-01-28 06:09:06 +00:00
begin;
attach database 'baseball-raw.db' as 'raw';
create table if not exists appearancespost (
"year" numeric,
"player" text,
"team" text
);
insert into appearancespost
select distinct yearID, playerID, teamID
from 'raw'.battingpost
union
select distinct yearID, playerID, teamID
from 'raw'.pitchingpost
union
select distinct yearID, playerID, teamID
from 'raw'.fieldingpost;
commit;