Hi.
I have a junction table with a composite primary key (ie. two field are used to define the primary key). I need link a third table to the junction table in a one to many relationship. In the attached photo
, the table without any relations should be on the "many" side and the junction table on the "one" side.
[imgnothumb]http://bytes.com/attachments/attachment/6372d1336683014/relation_proble me.jpg[/imgnothumb]
The idea is that there are a many "elements" elements linked to many "inspection s" and vica-versa. for each pair element-inspection i want to attribute a "condition" , in turn this one "conditon" can be linked to many "recommandation s".
I have considered using a single field primary key in the junction table called id_cond, but I don't want to do it like this because i don't want to the possibility of an element being attributed multiple conditions for the same inspection.
So how do I do it?
I have a junction table with a composite primary key (ie. two field are used to define the primary key). I need link a third table to the junction table in a one to many relationship. In the attached photo
[imgnothumb]http://bytes.com/attachments/attachment/6372d1336683014/relation_proble me.jpg[/imgnothumb]
The idea is that there are a many "elements" elements linked to many "inspection s" and vica-versa. for each pair element-inspection i want to attribute a "condition" , in turn this one "conditon" can be linked to many "recommandation s".
I have considered using a single field primary key in the junction table called id_cond, but I don't want to do it like this because i don't want to the possibility of an element being attributed multiple conditions for the same inspection.
So how do I do it?
Comment