These are my requirements:
- Each Category has Multiple Groups
- Each group has multiple Attributes
- Each attribute has multiple values
So far i have come up with this DB Design
CategoryGroups Table
GroupID | CatID[References Category(CatID)] | GroupName
CategoryAttributes Table
AttributeID | AttributeName | GroupID[References CategoryGroups(GroupID)] | AttributeValue
So do you guys think this is a neat design?? Any suggestions??
Apart from naming your second table
GroupAttributes, because it doesn’t know anything about Category, this is one, most used, good approach. You have multiple 1:N (one to many) relationships, and you’re referencing tables in the right way.