Forum Discussion
Many to Many Relationship
- 8 years ago
Hi everbody,
got the solution. First problem was to choose the wrong "offerID"-column to get a relationship.
I created a unique ID in the Pricelist concatenate with OfferID + Month(ValidFromDate) + Year(ValidFromDate).
Thanks for replies and help.
Hi EMGI,
First thing i'm thinking of to tackle this problem:
Make a calculated column in your calculated table where you put the price.
So based on the start date in calculated table you create a column where you put your price for the specific customer for a specific orderId.
You get me?
- EMGI8 years agoFrequent Visitor
Thanks for fast reply, but i didn't get you.
How can I set up a calculated column with the price if the relationship don't exists???
- miltenburger8 years agoHelper V
Ah sorry,
I thought you already had the relationship.
Then you have to create a 'link table'. What you probably need in this link table:
- OrderId
- PartnerId
- Startdate
All defined as primary key. Then link to your other tables. Then your many-to-many relationship becomes one-to-many and one-to-many
- EMGI8 years agoFrequent Visitor
My problem is how to create a link table with the values of the other two tables?
Which columns i need in the link table to get going on with the calculation?
I think the table has to be dynamically updated every time a new OfferID and a new price is inserted, or am i wrong?