I have several tables that benefit from many-to-many tables. For example, a table of commands.
A team member may contain more than one position in the team, all positions are indicated in the db position table. Previous positions are also stored for this. I have a separate table, so I have
- participants table (containing information about the team)
- position table (containing positions)
- member_to_positions table (element identifier and position identifier)
- member_to_previous_positions (element id and position id)
Simple, but now the question arises that a team member can belong to many aghhh teams. I already have a team_to_member lookup table. Now the problem is, how do I attach to a team? The member may have been a team leader on one team, and is currently a radio amateur commander and press officer on another team. How to simply pull out information for each participant to show his current position, as well as his past history, including past teams. Do I need to add the position_to table to the team and somehow cross-reference it, or can I add the command to the member in the position table?
All this is very confusing, this normalization.
source share