lahmanlite/sql/halloffamereqs.sql

15 lines
318 B
MySQL
Raw Normal View History

2024-01-27 18:58:48 +00:00
begin;
2024-01-29 01:07:59 +00:00
attach database 'baseball-raw.db' as 'raw';
2024-01-27 18:58:48 +00:00
create table if not exists "halloffamereqs" (
"yearID" numeric,
"votedBy" text,
"ballots" numeric,
"needed" numeric,
2024-01-29 01:07:59 +00:00
"needed_note" text
2024-01-27 18:58:48 +00:00
);
insert into halloffamereqs
select distinct yearid, votedby, ballots, needed, "needed_note"
2024-01-29 01:07:59 +00:00
from "raw".halloffame;
2024-01-27 18:58:48 +00:00
commit;