DavidHurwitz
5 years agoQrew Member
Need help with solution to a complex table relationship
Hi, I need help figuring out how to structure part of my application. My company transports art. So here is the scenarios I am trying to figure out:
I have one table called Clients which has all the information on my clients as well as their locations.
I have another table called Artworks which has all of the information on the pieces of art themselves (size, titles, packing material etc)
I created a third table called Jobs which will contain data on pickup and delivery dates, fees, additional services on the transportation like install and packing etc. This table has three places in it for info all pulled from different records in the clients table:
1. Client who requested job
2. Client where pickup will occur
3. Client where delivery will occur.
The information for all three of these clients is in my Clients table. It's also not uncommon for the same client to be the one who requested the job as well as the one where the delivery or pickup occurs.
So what I need to do is:
1- Be able to populate a single entry in my jobs table with information from three different clients.
2- Be able to add multiple artworks from my artworks table to the job.
What would be the best way to do this? A many to many relationship between the clients and job with a new in between sheet called Job Aggregation or something like that and then a many to one relationship from Artworks to the new Job Aggregation table? Am I thinking of this the right way?
Thanks for your help and look forward to hearing back.
------------------------------
David Hurwitz
------------------------------
I have one table called Clients which has all the information on my clients as well as their locations.
I have another table called Artworks which has all of the information on the pieces of art themselves (size, titles, packing material etc)
I created a third table called Jobs which will contain data on pickup and delivery dates, fees, additional services on the transportation like install and packing etc. This table has three places in it for info all pulled from different records in the clients table:
1. Client who requested job
2. Client where pickup will occur
3. Client where delivery will occur.
The information for all three of these clients is in my Clients table. It's also not uncommon for the same client to be the one who requested the job as well as the one where the delivery or pickup occurs.
So what I need to do is:
1- Be able to populate a single entry in my jobs table with information from three different clients.
2- Be able to add multiple artworks from my artworks table to the job.
What would be the best way to do this? A many to many relationship between the clients and job with a new in between sheet called Job Aggregation or something like that and then a many to one relationship from Artworks to the new Job Aggregation table? Am I thinking of this the right way?
Thanks for your help and look forward to hearing back.
------------------------------
David Hurwitz
------------------------------