I have a code that gives me two columns, Expense and Total, what I can not do is that in the output of the totals it gives me in currency format ($ 1,000.00). the code is this:
SELECT nome_evento AS Despesa, SUM(saida_caixa) AS total
FROM genius.caixa
LEFT JOIN genius.eventos ON eventos.id = id_despesa
WHERE 'data_caixa' BETWEEN "2016-07-29" AND "2016-08-30"
AND 'saida_caixa'!= 0
GROUP BY id_despesa;