EricTheRed
Registered User.
- Local time
- Today, 12:54
- Joined
- Aug 7, 2003
- Messages
- 27
Hey. I'm looking for the most efficient way to store the following data. Whatever the solution is, speed is the primary concern as the records will be accessed very frequently.
Alright, each contact in my database belongs to zero or more categories, where the catergories are sorted into four groups. For example, one group of categories may have the following:
How should I store this data? I've already come up with a tentative structure for storing the category data:
tblCategoryGroups
GroupID [autonumber, PK]
strGroupName
tblCategories
CategoryID [autonumber, PK]
GroupID [foreign key to tblCategoryGroups]
strCategoryName
But I'm completely at a loss for how to say which categories a contact belongs to. If it's any help, my plan is to have the user edit which categories (in a single group) a user is part of using a multi-select list box.Oh, and for reference, my contacts are all uniquely identified by a ContactID.
Help! (The deadline is creeping up faster than I care to contemplate!)
PS - If any of this didn't make sense, just ask for clarification. I'm more than willing to do anything I can to help you help me!
Alright, each contact in my database belongs to zero or more categories, where the catergories are sorted into four groups. For example, one group of categories may have the following:
- media
- corporate
- politician
- government
- NPO
How should I store this data? I've already come up with a tentative structure for storing the category data:
tblCategoryGroups
GroupID [autonumber, PK]
strGroupName
tblCategories
CategoryID [autonumber, PK]
GroupID [foreign key to tblCategoryGroups]
strCategoryName
But I'm completely at a loss for how to say which categories a contact belongs to. If it's any help, my plan is to have the user edit which categories (in a single group) a user is part of using a multi-select list box.Oh, and for reference, my contacts are all uniquely identified by a ContactID.
Help! (The deadline is creeping up faster than I care to contemplate!)
PS - If any of this didn't make sense, just ask for clarification. I'm more than willing to do anything I can to help you help me!