ProductSubCategory that belongs to multiple ProductCategory
2 views
Skip to first unread message
Deep Kunnath
unread,
Jun 23, 2012, 10:13:44 PM6/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to msbi-t...@googlegroups.com
Hello all, I
am running into an issue regarding the relationships between a few of
my tables. I have a 'Products' table that contains values which link to 2
other tables, 'ProductCategory' and 'ProductSubCategory.' For example:
The
ProductCategory and ProductSubCategory columns link as foreign keys to
the primary keys in their respective ProductCategory table and ProductSubCategory table. The
ProductCategory table has 2 columns (ProductCategoryKey and
ProductCategoryName) and the ProductSubCategory table has 2 columns
(ProductSubCategoryKey and ProductSubCategoryName). The issue is that I
would like to add a column to the ProductSubCategory table that links it
to the ProductCategory it belongs to. The problem is that, since one
ProductSubCategory can belong to multiple ProductCategory keys, I cannot
insert records in the ProductSubCategory table because it would create a
record that reuses the ProductSubCategoryKey. Is there anything I can
do as a workaround to establish these relationships?
Sridar K
unread,
Jun 25, 2012, 5:11:24 AM6/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message