> Tax Amount >+---+----------+ ..... > 19 30,32 > 5 0,50 > 8 0,55 > 19 30,32 > 8 0,50 > 0 0,00 > 19 30,32 >+----+---------+ >>
select tax, sum(amount) as TotalPerTax from Table ; group by tax ; into cursor FooterTotalsThen, to print it, if you know there would be a certain maximum taxes, you can put the cursor content in a string and put a fixed-height field.