BEGIN;
attach database 'baseball-raw.db' as 'raw';
CREATE TABLE IF NOT EXISTS "franchises" (
	"franchID"	TEXT,
	"franchName"	TEXT,
	"active"	TEXT,
	"NAassoc"	TEXT,
	PRIMARY KEY("franchID")
);

insert into franchises
select distinct * from 'raw'.'teamsfranchises';
COMMIT;
