Subject | Many to many (tables) relationship |
---|---|
Author | Rick Debay |
Post date | 2010-05-26T20:59:03Z |
I have to represent a relationship between a result set which is stored
as a row in a table, and a row of static parameters that were used in
the algorithm that produced the result.
The problem is that the single row of values is chosen from among many
tables. So I can't just use a foreign key pointing from the result to
the parameters. I can't use a junction table either, as this is to many
_tables_ not many rows.
Am I stuck adding a column for every table I may want to point to? If
so, then I can't set the field as NOT NULL to make sure a relationship
always exists.
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.
as a row in a table, and a row of static parameters that were used in
the algorithm that produced the result.
The problem is that the single row of values is chosen from among many
tables. So I can't just use a foreign key pointing from the result to
the parameters. I can't use a junction table either, as this is to many
_tables_ not many rows.
Am I stuck adding a column for every table I may want to point to? If
so, then I can't set the field as NOT NULL to make sure a relationship
always exists.
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.