N
Niels
Guest
For my DBA I need to do a calculation between several tables.
The idea is to add a margin over the purchase costs to get your selling price. The margin is project specific and stored in table tblMargin. The purchase prices are product specific and stored in tblArticle.
If the article is a member of an product group - say materials - then the DB has to get the materials margin for that specific project from tblMargin and add that to the purchase costs. 1 Project can consist out of several products from different product groups. So for eacht group it needs to get the correct margin and then add it to the purchase costs.
Any ideas cause I'm clueless on this one...
The idea is to add a margin over the purchase costs to get your selling price. The margin is project specific and stored in table tblMargin. The purchase prices are product specific and stored in tblArticle.
If the article is a member of an product group - say materials - then the DB has to get the materials margin for that specific project from tblMargin and add that to the purchase costs. 1 Project can consist out of several products from different product groups. So for eacht group it needs to get the correct margin and then add it to the purchase costs.
Any ideas cause I'm clueless on this one...