I am trying to make a query to pick numbers out of a table of several numbers that equals my end result which is known already. There are much more numbers in my number table that will not be used. The hard part is finding the correct numbers to add up to the total. There is negative numbers and positive numbers in the table.
Example:
I know my end result is 25,754.01
I have a table that contains several numbers which i need a query to pull out the numbers that add together to equal the 25,754.01
I know that with the correct numbers applied it will equal up to my end result. I just have too many numbers to set and go through all the scenarios
Is there a way to take my table of numbers and run through a procedure to come up with my end result??
Example:
I know my end result is 25,754.01
I have a table that contains several numbers which i need a query to pull out the numbers that add together to equal the 25,754.01
I know that with the correct numbers applied it will equal up to my end result. I just have too many numbers to set and go through all the scenarios
Is there a way to take my table of numbers and run through a procedure to come up with my end result??