Files
lahmanlite/sql/2nf/allstargames.sql
T

16 lines
316 B
PL/PgSQL
Raw Normal View History

2024-01-26 13:32:45 -06: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;