simon373
Programmer
- Oct 25, 2006
- 25
Hi,
Sorry if this sounds like a silly question, but:
Let's say I have the following information:
A product that can have many attributes like colour, weight, height. I want to be able to select each attribute from a dropdown list. Do I have to create a table for each attribute like:
ID Color
1 Green
2 Red
3 Blue
Then, using the dropdown list, lookup the value of the color ID and store it in the product table under color ID?
If so, I have lots of attributes and need to create a table for each. Or is there a better way of doing this because I am getting lots of tables!
Many thanks
Simon.
Sorry if this sounds like a silly question, but:
Let's say I have the following information:
A product that can have many attributes like colour, weight, height. I want to be able to select each attribute from a dropdown list. Do I have to create a table for each attribute like:
ID Color
1 Green
2 Red
3 Blue
Then, using the dropdown list, lookup the value of the color ID and store it in the product table under color ID?
If so, I have lots of attributes and need to create a table for each. Or is there a better way of doing this because I am getting lots of tables!
Many thanks
Simon.