I would like to simplify a Many-to-Many Relation complex, composed by key with 4 fields, one of which is used to establish dependency (serie: is order of creation).
I know that should break the table and keep dependencies, but after reading and thinking a long time, I do not know how.
Below system that contains the problem, which is represented in-First Normal Form 1NF-, where Rel_Apply_Lodge it is the table showing the problem.
Apply:
[Key] id_applies
Rel_Apply_Lodge:
[Key] [FK] id_applies
[Key] [FK] id_lodging
[Key] [FK] id_kind_boarding
[Key] [extra field] serie <- solves duplicate rows issue
Lodging:
[Key] id_lodging
[FK] id_kind_booking
[FK] id_municipality