Hi,
we have 2 tables; product and accessories; a product can have multiple accessories.
which approach is faster & better
a. store the accessories id as a comma separated value in the product table
b. create a separate table and store the relationship
b. 1 table columns: product_id,accessories_id (composite primary key)
b.2 table columns: id (primary key),product_id,accessories_id
Thanks
/govind
This is more convenient and easy to store and fetch the records.