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 > Designing DB problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-03, 02:39
niloco niloco is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Question Designing DB problem

Hello all.

I have a doubt about how i can design a db for my program. This is the problem:

I need to store in a Access db a table where the fields not are ever the same. That is, the table have differents sizes for each type of measurement (for example, i need to take data for one concrete parameter, and another data for other parameter.)

I hope that this problem have solution, or at least, an alternative method.

Thank you.

Regards Angel.
Reply With Quote
  #2 (permalink)  
Old 10-17-03, 05:50
GWilliy GWilliy is offline
Registered User
 
Join Date: Jan 2003
Location: Nottinghamshire, UK
Posts: 364
OK

If I understand you correctly - You have the same Logical product but according to the type of product you need to hold seperate measurement types.

How about this approach with an Instancing Table

Product
(ProductID,HeaderDesc1,HeaderDesc2)

RequiredProductMeasurements
(ProductID,MeasurementTypeCode)

Instance
(InstanceID,ProductID,MeasurementTypeCode,MeasurementValue)

MeasurementDescriptions
(MeasurementTypeCode,MeasurementTypeDescription)

Not Tried this particular way myself so it's just an idea

You will need to make full use of the transform statement in Access to view the data - & panic if you ever upgrade to SQL Server which has not got an equivalent statement

GW
__________________
"Everything should be made as simple as possible, but not simpler." - Albert Einstein
"Everything should be made as complex as possible, so I look Cleverer." - Application Developer
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