|
Posted by jerry gitomer on November 25, 2005, 10:13 am
Please log in for more thread options
effect1 wrote:
> My company sells widgets. In our 'shopping cart' that we're building,
> we want to list out the price for each widget. The problem is that
> the price varies depends upon which widget package (out of 10) as user
> selects, as well as which website (out of 8) they visit. So, 80
> different possible prices per widget (and there are lots of different
> kinds of widgets).
>
> Does anyone have any recommendations on how to build a database that
> will help prevent a separate record for each of the 80 different
> possible prices for each widget?
>
You really don't want to do that. The reason is the maintenance
involved if you have to support additional packages and or
websites in the future. (Sure, I know that they swore on a
stack of bibles that would never happen, but ....)
The best solution is to have a price table where each row has
three columns; package, website, price.
HTH
Jerry
|