I have two database tables, Categories and Supercategories, for the inventory management system I'm working on:
Categories: ID_Category, CategoryName
SuperCategories: ID_SuperCategory, CategoryID, SuperCategoryID
I put subcategory category relationships in the SuperCategories table. I put all categories in a category table.
Here is an example:
Categories:
ID_Category CategoryName
1 Box
2 red box
3 blue box
4 Blue Plastic Box
5 can
6 tin can
SuperCategories:
ID_Super CategoryID SuperCategoryID
1 2 1
2 3 1
3 4 3
4 6 5
CategoryID SuperCategoryID ID_Category "".
, , , - :
Tin Can
ID_Category, SuperCategoryID (2, 4 6), SQL.
VB6 Access 2000.
. !
EDIT: , -, . , , , . !