lahmanlite/sql/2nf/allstargames.sql

15 lines
279 B
MySQL
Raw Normal View History

2024-01-26 19:32:45 +00:00
begin;
create table if not exists allstargames (
"yearID" numeric,
"gameNum" numeric,
"gameID" text,
primary key("yearID","gameNum")
2024-01-26 19:32:45 +00:00
);
insert into allstargames
select distinct yearid, gamenum, gameid
2024-01-26 19:32:45 +00:00
from allstarfull;
alter table allstarfull drop column "gameID";
2024-01-26 19:32:45 +00:00
commit;