How should a relational database be designed to handle multi-valued attributes ?
edit: To elaborate:
There are two ways I could think of for doing this -
- Trying something like putting comma separated values in the field, which appears a bit clumsy.
- Create another table for the field and let the multiple values go to the field. This might lead to very large number of tables, if I have too many fields of this kind.
The question is:
- Are there any more ways of handling this?
- Which of the above two methods is generally used?
Thanks in advance