I have a question about my db design. I want to know if what I've done is the 'best' way to do it. All the db is doing is keeping track of an item (mostly dvd's), its price and what country the item was created in.
I have 2 tables with the following fields.
tblItems
ItemID bigint(20) (auto_increment)
ItemSKU varchar(25)
ItemName varchar(100)
country set('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13') ItemCost decimal(7,2)
tblCountryList
country_id tinyint(4)
country_name varchar(35)
Now in the table tblItems the 'country' field correlates to tblCountryList.country_id's id. I know that field is of 'set' type, which the highest number it can have it 65, I believe. I really don't think the tblCountryList will have 65 values.
I have read that there is an alternative to what I have. I could create another tables which basically correlates country to country_id. So every item can be of multiple countries. The way I have it, I could also have several countries for each item.
I guess it would be something like this
tblItemToCountry
ItemID
Country_id
My question basically is, should I stick to what I have or should I implement that correlation table? Maybe there is another option.
I hope I make some sense.
Thanks.