I have 2 tables Product
that contains products of the shop and ProductStatus
that indicates if product is new, sold, etc. One product may have many statuses.
I need to link Product and Status. I thought about two ways:
- add 3rd table
ProductToStatus
that will match ProductId with ProductStatusId - add
Status
column toProduct
table that will contain the IDs of the statuses separated with commas("4,12,34,");
What the pros and cons of each solution above or maybe there is another common way to do this?