On Mon, 1 Mar 2004 09:28:13 -0000, Tony Chamber wrote:
Quote:
im planning a dbase and each record could belong to mulitpul cataogries of a
non set number ( extra catagories could be added later).. how would i store
this information without setting up a field for each catagory . .e.g.
cat1id, cat2id, cat3id each time a catagory is added |
Sounds like a many-many relationship. You need a table for categories (eg
fields of cat_id, cat_name), a table for products (or whatever you have)
and a linking table which has product_id and cat_id as foreign keys.
--
Steve
www dot flyingtigerwebdesign dot com
Hong Kong, 01-Mar-04 8:42:20 PM