create table for manager award ties
This commit is contained in:
15
sql/2nf/awardsmanagersties.sql
Normal file
15
sql/2nf/awardsmanagersties.sql
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
begin;
|
||||||
|
create table if not exists awardsmanagersties (
|
||||||
|
"awardID" text,
|
||||||
|
"yearID" text,
|
||||||
|
"lgID" text,
|
||||||
|
"tie" text,
|
||||||
|
primary key("awardID","yearID","lgID")
|
||||||
|
);
|
||||||
|
|
||||||
|
insert into awardsmanagersties
|
||||||
|
select distinct awardID, yearID, lgID, tie
|
||||||
|
from awardsmanagers;
|
||||||
|
|
||||||
|
alter table awardsmanagers drop column "tie";
|
||||||
|
commit;
|
||||||
Reference in New Issue
Block a user