I'm trying to create a database for contacts. I must have many categories for every contact, like Home, Office, Emails, Phones. In every category one can add more than one value. Also the categories can be dynamic. How can this be designed in a database?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
|
Check out relational database design. It's an art and a science, and something that really can't be explained to the fullest in a post. But what you should do is create relationships between contacts and all possible data that will be related to it. This is most prevalent through the use of primary and foreign key relationships. |
|||
|
|
|
Have a look at "free data models" on databaseanswers.org. For example, "Contact Management" Your question is too broad: you can hire me to do it of course :-) |
|||
|
|
|
Sounds like a pretty traditional relational database design.
|
|||
|
|
|
You should look at Universal Data Models for Party Contact Mechanism, which allows you to store as many contacts and category of contacts that you want. |
|||
|
|