I wanted the values in the rows to be prefixed with a dollar sign, and at the same time to use dbr.sum to show totals at the bottom of the column.
I am getting the following error:
The command dbr.sum uses column "Amount Promised" which is not numeric (it's char). Non-numeric data prevented the calculation
The command dbr.sum uses column "Amount Collected" which is not numeric (it's char). Non-numeric data prevented the calculation.
Here is my code
select 'dbr.sum',
'Amount Promised',
'Amount Collected'
;
SELECT `Collector Name` AS 'Collector Name',
CONCAT('$', SUM(`Amount Promised`)) AS 'Amount Promised',
CONCAT('$', SUM(`Amount Collected`)) AS 'Amount Collected'
FROM tmp_table_ptp
GROUP BY `Collector Name`
ORDER BY `Amount Promised` DESC;
p.s. I am using myDBR 6.9.4 (build 5133), and while one machine causes this error, another machine with the exact same build does not.