lahmanlite/sql/2nf/allstargames.sql

16 lines
316 B
MySQL
Raw Normal View History

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