N
Neil
I have a database with two tables of entities. Both tables will have a
child address table, as follows:
Table1:
PK: T1_ID
Table1_Addresses:
PK: T1Ad_ID
FK: T1_ID
Table 2:
PK: T2_ID
Table2_Addresses:
PK: T2Ad_ID
FK: T2_ID
The client I'm doing it for, though, would like one address table,
shared by both tables. That would require something like this:
Addresses:
PK: Ad_ID
FK: T1_ID
FK: T2_ID
with Table1 and Table2 joined, alternatively, to the two FKs. That
configuration seems non-normalized to me, though it seems it would work.
I'd be interested in hearing people's opinions about that approach, and
whether it's a good way to go.
Thanks!
Neil
child address table, as follows:
Table1:
PK: T1_ID
Table1_Addresses:
PK: T1Ad_ID
FK: T1_ID
Table 2:
PK: T2_ID
Table2_Addresses:
PK: T2Ad_ID
FK: T2_ID
The client I'm doing it for, though, would like one address table,
shared by both tables. That would require something like this:
Addresses:
PK: Ad_ID
FK: T1_ID
FK: T2_ID
with Table1 and Table2 joined, alternatively, to the two FKs. That
configuration seems non-normalized to me, though it seems it would work.
I'd be interested in hearing people's opinions about that approach, and
whether it's a good way to go.
Thanks!
Neil