Ok i have this DB i'm creating and I'm not sure how you would create the associative entity from the ERD, or if you even create it at all?
here's the normalized tables.
organization|
orgid, orgname, orgstreet, orgstate, orgcity, orgstate, orgzip, chanid (foreign)
channel |
chanid, chantitle, chancontent
function |
funid, date, time, name
location |
lid, street, city, state, zip
details |
date,
orgid,
funid,
lid
The details table is the one i'm having a problem with. when i try to upload the text file to MySql server i get an error message saying that i can only have on eprimary key

. So how would i create this without actually making the table with all the keys? or do i even need to create it do i just join them?
also for some reason if i use FOREIGN KEY when creating tables MySql kicks it back with an error
here's the table creation code
Code:
CREATE TABLE organization(
orgId int(6) not null primary key auto_increment,
orgName VARCHAR(20),
orgStreet VARCHAR(20),
orgCity VARCHAR(10),
orgState VARCHAR(40),
orgZip int (9),
chanId VARCHAR(100)
);
CREATE TABLE channel(
chanId int(6) not null primary key auto_increment,
chanTitle VARCHAR (20),
chanContent VARCHAR(1000)
);
CREATE TABLE function(
funId int(6) not null primary key auto_increment,
date date,
time int(4),
name VARCHAR(20)
);
CREATE TABLE location(
lId int(6) not null primary key auto_increment,
street VARCHAR(20),
city VARCHAR(20),
state VARCHAR(20),
zip int(9)
);
CREATE TABLE details(
date date not null primary key,
orgId int(6) not null primary key,
funid int(6) not null primary key,
lId int(6) not null
);
