Código:
SELECT SUM(e.earnings) as ingresos, SUM(e.outlay) as gastos, e.concept, FROM earnings_outlay e GROUP BY e.concept
Código:
ingresos gastos concepto porcentaje ----------- ----------------------------------------- 999.99 0.00 coche 99.77 0.00 hipoteca