Good morning once again I consult the community to see if you can help me, I have the following query:
SELECT ncuenta, dcuenta, SUM(-saldo) as monto2
FROM captura
WHERE SUBSTR(NCUENTA,1,2) >= '30'
and SUBSTR(NCUENTA,1,2) < '39'
and fecha <= '2017-09-30'
GROUP BY NCUENTA
Where the result is:
+---------+---------------+------------+
| ncuenta | dcuenta | monto2 |
+---------+---------------+------------+
| 310-012 | revision | -0.00 |
| 320-005 | presupuesto | 0.00 |
| 321-001 | datos ultimos | 5712934.19 |
+---------+---------------+------------+
And I get the query well but I would like the query to give me without the zero, that is to say:
+---------+---------------+------------+
| ncuenta | dcuenta | monto2 |
+---------+---------------+------------+
| 321-001 | datos ultimos | 5712934.19 |
+---------+---------------+------------+
only someone who can help me or who has some idea of how I can do it