StephanieHarris
7 years agoQrew Assistant Captain
Possible Need for Many to Many Relationship
I currently have 3 tables: Investigations, Subjects and Observations.
There are 2 types of Observations
Today:
I want to be able to:
Not sure if I need to create a new table for General Observations and create a relationship that 1 Observation can have many Subjects & Keep the existing Observations table only for Specific Observations where 1 Subject could have many Observations
OR
Create some sort of Many to Many relationship with a Join table of some sort
OR
Something else entirely
- 1 Investigation can have many Subjects
- 1 Subject can have many Observations
There are 2 types of Observations
- Specific - We know who the subject is and are going to observe only them
- General - We are observing an area and this observation may identify 0, 1 or Many Subjects
Today:
- If an investigation has 2 Subjects that were both identified as a result of the same Observation we just pick 1 Subject and related the Observation to that person
- I can tell you how many observations were done in a year
- I can't tell you how many subjects were tied to those observations.
I want to be able to:
- Run a report that shows how many observations were done
- Run a report that shows how many subjects were related to those observations
- Run a report that shows the action taken on each Subject that was related to an Observation (action is MC Text field on the Subject Tables)
Not sure if I need to create a new table for General Observations and create a relationship that 1 Observation can have many Subjects & Keep the existing Observations table only for Specific Observations where 1 Subject could have many Observations
OR
Create some sort of Many to Many relationship with a Join table of some sort
OR
Something else entirely