2024-01-31 22:43:23 -06:00
|
|
|
pragma foreign_keys = 0;
|
|
|
|
|
|
2024-01-27 18:05:45 -06:00
|
|
|
begin;
|
|
|
|
|
attach database 'baseball-raw.db' as 'raw';
|
2024-01-31 00:09:39 -06:00
|
|
|
create temp table if not exists "awards" (
|
2024-01-27 18:05:45 -06:00
|
|
|
"ID" text
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
insert into awards
|
|
|
|
|
select distinct awardID
|
|
|
|
|
from "raw".awardsmanagers
|
|
|
|
|
union
|
|
|
|
|
select distinct awardID
|
|
|
|
|
from "raw".awardsplayers;
|
2024-01-31 00:09:39 -06:00
|
|
|
|
|
|
|
|
create table if not exists "awards" (
|
|
|
|
|
"ID" text,
|
|
|
|
|
primary key("ID")
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
insert into main.awards
|
|
|
|
|
select distinct * from temp."awards";
|
2024-01-27 18:05:45 -06:00
|
|
|
commit;
|