Hello to All!
I want some help in my DB design. I have a Inventory DB, in which there is a Products table. Now each product can be available in multiple Types, Materials, Colors, and Themes etc. But I have to have only one record per product in the Products table no matter in how many colors or materials it is available in. Then I have multiple tables each for Materials, Colors etc.
One way of connecting a product with different colors, Materials is having a table in b/w them that'd contain ID's from both Product and Colors, Materials Table like
IDProduct IDColor and one table like
IDProduct IDMaterial
But this would end up in having alot of those in b/w tables, One each for Materials, Colors, Types, Themes and so on.
One other way might be to save the info in the Products table it self in a comma separated field like:
IDProduct IDType IDColor IDMaterial ...
1 1,2,3 2,3 3,5,6
Tell me which of these or some other is better way to save such information.
I'd be very grateful.
Regards,
Sajid.