T
TC
One table for items. This saves values that are common to the item across
all stores; eg. item name, >default< price.
Another table for stores. This saves values that are common to the store,
regardless of items; eg. store name & location.
A junction table containing ItemID and StoreID. This saves values that are
common to a >specific< item/store combination; eg. the actual price of that
item at that store.
The primary key of the junction table is a so-called "composite"
(multi-column) primary key of ItemID and StoreID (ie. two fields in the
primary key).
HTH,
TC
The item table st
all stores; eg. item name, >default< price.
Another table for stores. This saves values that are common to the store,
regardless of items; eg. store name & location.
A junction table containing ItemID and StoreID. This saves values that are
common to a >specific< item/store combination; eg. the actual price of that
item at that store.
The primary key of the junction table is a so-called "composite"
(multi-column) primary key of ItemID and StoreID (ie. two fields in the
primary key).
HTH,
TC
The item table st