JuanSolorio1
4 years agoQrew Cadet
How to generate report of records related in many-to-many relationshipts
Hello everyone,
Please see attached ERD section for reference.
The goal is as follows:
1. I need to be able to generate a report for USERS listing all ELEMENTs that are being used in the PROJECTS that the user belongs to. I need to be able to display each element only once for each user, regardless of how many projects they are working on.
2. I also need to generate a report for ELEMENTS listing all USERS that are using that element via the PROJECTS that the user belongs to. I need to be able to display each user only once for each element, regardless of how many projects they are working on.
As you can see in the ERD, these tables are indirectly related through M:M relationships.
Is there a way to accomplish this?
Note: I have modified the ERD as it was previously showing an incorrect relationship.
Thanks in advance,
J.
Please see attached ERD section for reference.
The goal is as follows:
1. I need to be able to generate a report for USERS listing all ELEMENTs that are being used in the PROJECTS that the user belongs to. I need to be able to display each element only once for each user, regardless of how many projects they are working on.
2. I also need to generate a report for ELEMENTS listing all USERS that are using that element via the PROJECTS that the user belongs to. I need to be able to display each user only once for each element, regardless of how many projects they are working on.
As you can see in the ERD, these tables are indirectly related through M:M relationships.
Is there a way to accomplish this?
Note: I have modified the ERD as it was previously showing an incorrect relationship.
Thanks in advance,
J.