I would like to group the sum of one column per quarter, that is, every three months.
I have the following query that groups from month to month:
select month(data) as mes, year(data) as ano, ifnull(sum(det.quantidade),0) as total...
asked by
03.08.2015 / 15:39