PaulPeterson
5 years agoQrew Member
Help needed with Many to Many relationship
I am currently struggling to get data flowing correctly. The end goal is to send data from an installation table to a verification table (basic site information and services to be verified). The verification table will use the data from the installation table and add verification details and return the data to the installation table.
I currently have three tables to accomplish this, the installation table, verification table and a bridge table. The current relationships are: The installation is the parent for the verification table, the verification table is the parent for the bridge table and the bridge is a parent for the installation table.
My thinking on these relationships is the installation table sends data to the verification, the verification table sends the verification data to the installation table via the bridge.
I can get data to the verification table and to the bridge, but not back to the installation table. I have two questions. First, is this logic sound?
The second question is a little more cloudy. Another team member added a relationship with the verification table being parent for the installation table thinking we do not need the bridge table. Would this relationship in any way prevent the data flow from the bridge to the master or would if cause any other issues.
There is one additional problem. The key field in the Installation table may not exist in the verification. The key in the installation table is the project number, but not everything being verified will be associated with a project number.
I apologize for the lengthy post, I wanted to provide as much information as possible.
------------------------------
Paul
------------------------------
I currently have three tables to accomplish this, the installation table, verification table and a bridge table. The current relationships are: The installation is the parent for the verification table, the verification table is the parent for the bridge table and the bridge is a parent for the installation table.
My thinking on these relationships is the installation table sends data to the verification, the verification table sends the verification data to the installation table via the bridge.
I can get data to the verification table and to the bridge, but not back to the installation table. I have two questions. First, is this logic sound?
The second question is a little more cloudy. Another team member added a relationship with the verification table being parent for the installation table thinking we do not need the bridge table. Would this relationship in any way prevent the data flow from the bridge to the master or would if cause any other issues.
There is one additional problem. The key field in the Installation table may not exist in the verification. The key in the installation table is the project number, but not everything being verified will be associated with a project number.
I apologize for the lengthy post, I wanted to provide as much information as possible.
------------------------------
Paul
------------------------------