in reply to Re: database design
in thread database design issue: one big table vs hundred of smaller tables
If you really do need a tree then Joe Celko probably has what you need. (skip the travelogue at the start)
This scheme has many advantages over the "multiple tables" solution. A couple are:table: Categories: category_desc | catID table: Items: item_desc | itemID | catID table: Attributes attribute_desc | AttributID | itemID SELECT category_desc, item_desc, attribute_desc FROM Categories, Items, Attributes WHERE Categories.catID = Items.catID AND Items.itemID = Attributes.itemID;
Apart from being off topic, you might do better by asking database questions on a database forum. The monks are a nice bunch, but not every problem is a nail.
|
|---|