Re: How to represent category, subcategory, product
Date: 21 Nov 2006 15:47:21 -0800
Message-ID: <1164152841.194997.21190_at_h54g2000cwb.googlegroups.com>
Neo, your suggestion is intriguing, I'll be looking into it. It sounds a very unusual approach. Is it? It seems you'd need a pretty heavy piece of SQL every time you wanted to reference the derived table of subcategories, and I don't suppose it would be possible for another table to have a foreign key onto the derived table, i.e. for an entity which could only ever be a direct member of a subcategory, not a top level category.
I'm surprised how difficult it's been to find a decent resource which helps teach these building blocks of relational database design, I haven't found any database counterparts of the libraries of algorithms or design patterns that you find in the programming world. Everything I've seen in the way of database tutorials so far seems to teach you normal form and send you on your way. Surely there must be some way to break into this circle without nagging the sages of usenet!
Thanks all, TH. Received on Wed Nov 22 2006 - 00:47:21 CET