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