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 > a database design problem... ...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-09, 11:18
qmqmqm qmqmqm is offline
Registered User
 
Join Date: Feb 2009
Posts: 5
a database design problem... ...

Hi everyone

I am fairly new to database design…

I need to design a database that basically allows users to configure different parameters for a number of software packages.

To explain from bottom up, for example software_package_A_config would consists of the following name-value pairs:
parameter_1 = some_value
parameter_1 = some_other_value
parameter_2 = yet_another_value
parameter_3 = … …
etc.
Parameters are allowed to have the same name, as shown above. And different software packages can have one or two identical parameters, but this is rare.

And a number of software package config’s form a config_profile. So every config_profile will consist of:
software_package_A_config
software_package_B_config
software_package_C_config
etc.
software package config’s are NOT allowed to have the same name in the same config_profile.

Also, every config_profile can be owned by one or more users (many-to-many relationship). There are a number of users that can log into the database, each of them have a user name and a password.

The following are my thoughts on how to design a database to hold all these information.
I would have:
a “user” table consisting of the following fields: *username, password;
a “config_profile” table;
an association table to link the user table and the config_profile table.

I am not quite sure how to design the rest of the database to include the parameters and all their values…

Does anyone have any suggestions?

Thanks a million,

Tom

Last edited by qmqmqm; 02-24-09 at 11:35.
Reply With Quote
  #2 (permalink)  
Old 02-24-09, 16:16
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
Is the set of parameters and their types known at design-time? If yes, then one column per parameter should do fine.
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