I have a simple table in a FIREBIRD database:
idCliente: integer
dataPagamento: date
valor: numeric
How to make a select that adds up all the amounts to be paid by grouping by month and year?
type like this:
select MES_ANO, sum(valor) from pagamento group by MES_ANO