If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Table design for quoting product configurations

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-06, 15:16
gc76 gc76 is offline
Registered User
 
Join Date: Apr 2003
Posts: 3
Table design for quoting product configurations

I'm having trouble designing tables to store quotes. In this system, product configurations (custom built products) are quoted at a variety of "locations". The price then is a function of the product configuration options and the dimensions of the location. I need to conserve space/bandwidth so that this will work well on a handheld, although hopefully I do not have to compromise the design just for this.

So if there is a particular product configuration to be quoted against 30 locations, it would seem pointless to store this product and, say, 20 options, for each location. So it would make since to have this configuration (product header and option details) stored once and match them to the locations they are being quoted at.

The problem comes when the user needs to adjust the options at just 1 location. Is this a new product configuration? If so, should I have just created all 30 locations x 20 options up front, even though in most cases the options will just repeat? If I just created the 1 configuration and an option is changed somewhere, do I create a second configuration? But then if the option is changed back should I collapse the 2 configurations back to 1 since they are effectively identical? Seems like too much work, but also it seems like creating these 600 rows up front is also a waste.

Any ideas on how to structure the tables properly?
Reply With Quote
  #2 (permalink)  
Old 12-11-06, 06:23
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Do the 600 rows - it is much easier, as you have pointed out yourself. And don't worry so much about numbers of rows. If you were using a spreadsheet to record this information with 30 rows for the locations and 20 columns for the options, would you worry about performance and bandwidth then? You would still have 600 separate pieces of information recorded (the cells) - and the spreadsheet probably contains more bytes of data including overheads than the database equivelant (bold assertion: I have no evidence to back that up!)
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On