I need to select from a table and format the output like so (total is a SUM(value)):<BR><BR><pre class="ip-ubbcode-code-pre"> That's not what the SQL engine is for ...