lahmanlite/sql/2nf/allstargames.sql

15 lines
279 B
PL/PgSQL

begin;
create table if not exists allstargames (
"yearID" numeric,
"gameNum" numeric,
"gameID" text,
primary key("yearID","gameNum")
);
insert into allstargames
select distinct yearid, gamenum, gameid
from allstarfull;
alter table allstarfull drop column "gameID";
commit;