I am creating a data base for an eCommerce website but i am having trouble with data base schema for products categories which is some what like a tree structure.
A vendor can belong to one or more Department and Department can have one or more Categories and Categories can have one or more Sub Categories. Similarly sub categories can have its on child so forth…
A product should be mapped to a Vendor (if department is unknown) or a Department (if category is unknown) or Sub Category so forth..
What would be the best way of doing this kind of complex relationship database.
Hey you can do this in single table.
From above you can understand the whole…