Forum Discussion
Multiply table1 column 1 from table 2 column 2
Hi Anonymous
since the relationship is many to many that means in some dates there is multiple costs. Therefore you have to provide a preference on which price would you like to consider; the max, min or average?
well i dont want any of that i just want to multiply the cost by the sales no average no min no max just cost * sale and thats it any clue?
- tamerj14 years ago
Community Champion
Anonymous
I believe you misunderstood my reply.
in some instances you might not have a single value of the cost rather it will be multiple cost values in a single day. Then providing a preference is not an option it is a must.- Anonymous4 years agoNot applicable
thats true but what can i do in that case
- tamerj14 years ago
Community Champion
I guess the average value would be a good estimate? I have no idea about the structure and full meaning of your data. This is a decision that has to come from the business responsible. In the following reply I will post a proposed code