hi all
i am new i databases and have some question
there are 3 tables in DB. idea is that one man can have MANY (so one to many relation) cars and car can have only one color
so a screen shot of data model from ACCESS where all is work fine
ImageShack® - Online Photo and Video Hosting
so...
PHP Code:
CREATE TABLE color
(
color_id integer,
color_name text,
,
PRIMARY KEY (color_id)
);
CREATE TABLE cars
(
id_record integer,
car_model text,
color_id integer,
id_man integer,
PRIMARY KEY (id_record)
);
CREATE TABLE main
(
id_man integer,
name text,
surname serial,
adress text,
PRIMARY KEY (id_man)
);
and now how to correctly connect id_man in 2 tables and color id ? 1 one many in both cases.i am doing all in Open System Architect and it doesnt allow me do connect the field ...
thanks and sorry for my eng
