0
I need to create a n:m relationship in mysql, follow my example:
I have a table called empresas
and another representantes
. An enterprise may have more than one representative, and a representative may belong to more than one enterprise. In this case, the best relationship that fits this problem, is relationship n:m.
In relationship n:m, there is a third table linking the representative and a company. How can I make an INSERT and an UPDATE in this third table recursively, without duplicating the records, knowing that when registering a company, I have several representatives, and vice versa?
Post the code of the tables or their modeling diagraph.
– Leonardo
I just posted the image.
– paulomartinhago