C
Chris
I've got two tables; t_ORDER and t_QUOTE.
I want to relate the primary key of t_QUOTE to the primary
key of t_ORDER in a one-to-one relationship.
The tricky part is that there can be a quote ID, but not a
corresponding order ID. For example a customer is given a
quote, but the quote does not become an order, and there
is no purchase order. In other words the quote dies.
My thoughts are that I create a foreign key table (say
t_QUOTE_ORDER) to relate the two keys. This allows me to
delete quotes in t_QUOTE when quotes go "dead", with a
Cascade Delete to t_QUOTE_ORDER so the table doesnt get
overwhelmingly large??
Any thoughts/help appreciated??
cheers
I want to relate the primary key of t_QUOTE to the primary
key of t_ORDER in a one-to-one relationship.
The tricky part is that there can be a quote ID, but not a
corresponding order ID. For example a customer is given a
quote, but the quote does not become an order, and there
is no purchase order. In other words the quote dies.
My thoughts are that I create a foreign key table (say
t_QUOTE_ORDER) to relate the two keys. This allows me to
delete quotes in t_QUOTE when quotes go "dead", with a
Cascade Delete to t_QUOTE_ORDER so the table doesnt get
overwhelmingly large??
Any thoughts/help appreciated??
cheers