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
|
|
|
|
2024-03-17 04:37:42 +00:00
|
|
|
update awards
|
|
|
|
set id = 'Silver Slugger'
|
|
|
|
where id = 'SIlver Slugger';
|
|
|
|
|
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;
|