Per wessam:
I'm asking about data structure.. I have a lot of categories in my data
base.. I want to divide them into sub categories..
How can I do that?
Depends on what a "category" or "subCategory" is.
Can one entity be in many categories/subcategories or just one?
OTOH, maybe you're describing a hierarchical structure where different
bottom-level entities can have varying numbers entities above them in a
hierarchy.
viz:
---------------
Vendor
Database
Table
Field
---------------
vs
---------------
Vendor
FeedStream
Field
---------------
The first case would involve a link table between the parent table and the table
containing category names.
e.g.
tblFund---tblFundCategory---tlkpCategory
The second case would involve recursive relationships.
One table with each item having an optional "Parent" - which I cannot figure out
how to represent within the confines of ASCII text...-)