By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,479 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

Best way to have subcategories?

P: n/a
I have read various things on subcategories. If there is only one
subcategory for a main category it doesn't seem too bad, just another
table, but I was wondering what some of you might recommend as the
best way to created subcategories. What if a subcategory has another
subcategory? I have read about sql adjacency models, but wanted a
real world example to see if this is necessary. thanks in advance.

Feb 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
tbl_parts:
part_id - AutoNumber
part_description

tbl_bom (bill_of_material)
bom_id - Autonumber - indexed (No Duplicates)
part_id - Number - FK - PK
sub_part_id - Number - FK - PK (No relationships yet)
qty - Number

This is something I've been toying with for a while. I don't know how
to tool the relationship for the sub_part_id to the tbl_parts. The
problem is that they are two separate instances linked to the same
field. It works well I just use an extra lookup on my form when the
record saves to make sure that the subpart exists.

Cheers,
Jason Lepack

On Feb 12, 11:18 am, "jmDesktop" <needin4mat...@gmail.comwrote:
I have read various things on subcategories. If there is only one
subcategory for a main category it doesn't seem too bad, just another
table, but I was wondering what some of you might recommend as the
best way to created subcategories. What if a subcategory has another
subcategory? I have read about sql adjacency models, but wanted a
real world example to see if this is necessary. thanks in advance.

Feb 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.