Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15595

Very complicated but perhaps possible!

$
0
0
hello vbforums
I have a very complicated query I'm asking experts if it is possible to run this query.
This is my table

Attachment 180822
Name:  pic1.png
Views: 46
Size:  5.4 KB

As shown in table the record has a debt of 60 + 10 + 20 = 90 E
Now the record pays 80 E, My question:
Is it possible to distribute the 80E on the 3 items?
In other words:
Item1 ..... (+ 60 = 100) (remain = 0)
Item2 ...... (+ 10 = 20) (remain = 0)
Item3 ...... (+ 10 = 20) (remain = 10)
If this is possible , how would be the query please?
Thank you
Attached Images
 

Viewing all articles
Browse latest Browse all 15595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>