from using sql database search aspect, one single field for multiple
value(attributes) is bad
Suppose you want select product by categories, with delimited field holding
multiple categories the search would be brutally slow and expensive and
definitely not scalable.
you should have association table
productID category
and you can query the joint tables very easily and quickly with simple sql
select p.product , Category from Productstable as p, CategoryTable as c
where p.productID = c.productID and category ="somecategory"
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:C7**********************************@microsof t.com...
hey all,
let's say i have some categories that i want to attach to a product. my
thought on storing this information was storing each of the categories for
a
particular product into one database field, semicolon delimited?
is there a another way to do this? if the above option is desired what
would
be the best way to separate the categories out when reading the product
from
the database?
thanks,
rodchar