SELECT sum( if foto.rates.frequency = 1 then (sum foto.payments.amount_net(month x)) elseif foto.rates.frequency = 3 then (foto.payments.amount_net (month x)/foto.rates.frequency) And foto.payments.amount_net (month x-2)+foto.payments.amount_net (month x)/foto.rates.frequency, foto.payments.amount_net (month x-1) + foto.payments.amount_net (month x)/foto.rates.frequency elseif foto.rates.frequency = 6 then..(the same calculation as in the case before) elseif foto.rates.frequency = 12 then..(the same calculation as in the cases before)) End
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)