Nova
04-16-2010, 09:34 PM
Hey there, I'm having problems with the design of a database that stores information about beer.
Basically I want to be able to compare the prices of beers at different suppliers but I'm not sure how to go about storing this information to start with.
Each beer has one or many container types (bottle, can etc..)
then each container type is sold as a quantity (4 pack, 6 pack etc..)
then on top of this each combination of beer,its container, and the quantity it can be purchased in, is sold at 1 or many suppliers, at different prices for each beer and its quantity(s) and at different prices, depending on the supplier.
I have attached a picture showing my current tables and with their relationships.
Thanks,
Nova
Basically I want to be able to compare the prices of beers at different suppliers but I'm not sure how to go about storing this information to start with.
Each beer has one or many container types (bottle, can etc..)
then each container type is sold as a quantity (4 pack, 6 pack etc..)
then on top of this each combination of beer,its container, and the quantity it can be purchased in, is sold at 1 or many suppliers, at different prices for each beer and its quantity(s) and at different prices, depending on the supplier.
I have attached a picture showing my current tables and with their relationships.
Thanks,
Nova