lahmanlite/sql/yearlyawards.sql

16 lines
313 B
MySQL
Raw Normal View History

2024-01-28 19:02:38 +00:00
begin;
attach database 'baseball-raw.db' as 'raw';
create table if not exists "yearlyawards" (
"year" numeric,
"award" text,
"league" text
);
insert into yearlyawards
select distinct yearid, awardid, lgID
from "raw".awardsmanagers
union
select distinct yearid, awardid, lgID
from "raw".awardsplayers;
commit;