O
oftenconfused
I have a table called PRODUCT. For each product (or data entry) I want to be
able to select one or more uses for the product. To do this, I have the
PRODUCT table linking to a table called USE (which is on the many side of a
one-to-many relationship). Here's my question: I want to be able to
associate comments to each individual use. I thought about adding a
"comment" field to the USE table, but depending on the product, the comment
may be different for the same selection in the USE table. So, I created a
separate table called USE COMMENT. I think this is the way to go. (Please
tell me if I'm wrong.) I'm just not sure I built it correctly. Here's what
I did:
PRODUCT
ProductID
ProductName
USE
UseID
RequiredProductID
Use
UseCommentID
USE COMMENT
UseCommentID
Comment
There should be only one comment per use per product. Did I do this right
(linking through UseCommentID), or do I need to do the following (linking
through UseID):
USE
UseID
RequiredProductID
Use
USE COMMENT
UseCommentID
UseID
Comment
When do you need to link one way versus the other?
Thanks!
Andrew
able to select one or more uses for the product. To do this, I have the
PRODUCT table linking to a table called USE (which is on the many side of a
one-to-many relationship). Here's my question: I want to be able to
associate comments to each individual use. I thought about adding a
"comment" field to the USE table, but depending on the product, the comment
may be different for the same selection in the USE table. So, I created a
separate table called USE COMMENT. I think this is the way to go. (Please
tell me if I'm wrong.) I'm just not sure I built it correctly. Here's what
I did:
PRODUCT
ProductID
ProductName
USE
UseID
RequiredProductID
Use
UseCommentID
USE COMMENT
UseCommentID
Comment
There should be only one comment per use per product. Did I do this right
(linking through UseCommentID), or do I need to do the following (linking
through UseID):
USE
UseID
RequiredProductID
Use
USE COMMENT
UseCommentID
UseID
Comment
When do you need to link one way versus the other?
Thanks!
Andrew