Greetings,
I am just starting out in web development and database design and I am having a difficult time understanding the back end design of my applications. For example, here is a small sample of a database I have been working on.
COMPANY(company_id, name, address, city, state, zipcode)
CONTACT(contact_id, first_name, last_name, phone_number, position, email_address)
COMPANY_CONTACT(company_id, contact_id)
I think I understand the many-to-many relationship where you have to create a 3rd table and link them all together as illustrated above. However, I am having a hard time figuring out how this information would be updated from a front end perspective. For example, on a front end web page I would gather all of the information for the company and contact tables and update them but how would the information in the company_contact table be updated? Does this information update automatically due to the relationship created or would it need to be updated in addition to the other two tables? I'm sorry if this seems like a stupid question but I can't seem to wrap my mind around that concept.
Also, I have searched for a good online article about this topic but haven't really found anything good yet. I have also considered purchasing a book but they all seem very advanced, dry, and boring. Can anybody recommend a good data modeling/database design book for a beginner that might help me understand more?
Thanks in advance for any suggestions.