I know I should know this...but I'm tripping over myself I'm sure.
I have a table named "contacts" that has these fields:
user_id
contact_type
fname
lname
etc.
I also have a table named "contact types" that has these fields:
type_id
contact_type
(Note: a contact type would something like Broker, Leader Manager, Finance Director, etc.)
One contact may have multiple (up to 3) contact types. For example, a contact may be the Broker, Lead Manager and Sales Associate whereas another may just be a Sales Associate.
Eventually, I'll have a data page that allows people to select anyone based on their contact type and have the results appear from the contact table
This is where I'm stuck: I can't figure out how I should structure the contacts table or (is it done in a data page and how?) so that when I add a new contact, I can assign that contact to multiple contact types.
I know this is probably database 101, but I think I've over-thought it so much that I can't see the answer staring at me.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
virtuosova
I know I should know this...but I'm tripping over myself I'm sure.
I have a table named "contacts" that has these fields:
user_id
contact_type
fname
lname
etc.
I also have a table named "contact types" that has these fields:
type_id
contact_type
(Note: a contact type would something like Broker, Leader Manager, Finance Director, etc.)
One contact may have multiple (up to 3) contact types. For example, a contact may be the Broker, Lead Manager and Sales Associate whereas another may just be a Sales Associate.
Eventually, I'll have a data page that allows people to select anyone based on their contact type and have the results appear from the contact table
This is where I'm stuck: I can't figure out how I should structure the contacts table or (is it done in a data page and how?) so that when I add a new contact, I can assign that contact to multiple contact types.
I know this is probably database 101, but I think I've over-thought it so much that I can't see the answer staring at me.
Any help would be sincerely appreciated.
Lisa
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.