View Full Version : 2 foreign keys


laailalalaa
01-05-2010, 01:32 AM
hello,

i have table1(id1 PK) and table2(id2PK, a1, a2)

i want a1 and a2 to be foreign keys for id1 (with cascade on update & delete). making a1 foreign key works fine. when trying to make a2 foreign key as well, a 3rd table (table2_1) appears in the relationships window (but not in the db).

what does this behaviour mean?

thanks

namliam
01-05-2010, 01:51 AM
This behaviour means exactly as you describe it...

the Table2_1 is a "simple" copy/alias of the same table, to be able to make the relationships work...

In actuality I think you want to have 2 table1's not table2's.

laailalalaa
01-15-2010, 05:00 AM
thanks for your answer, got it