Nope, but your SQL could be significantly simplified, AFAICS
select sum(lumpsumpayment + total1 + total2 + total3 + total4 + costplustotal)
HTH!
--
Christian R. Conrad
Same old username (as above), but now on iki.fi
(Yeah, yeah, it redirects to the same old GMail... But just in case I ever want to change.)