1
At the moment I’m developing a app
where I list on a table the month and the sum of consumption of each month in KW
as shown in the print below:
only that I n know how I would do to instead of listing the number of the month appears the name of the month referring to the number, at the moment I am using the following command SQL
:
SELECT ROUND(SUM(c.potencia/12))/1000 AS potencia
, MONTH(c.data_criacao)
FROM consumo c
WHERE c.comodo_id = :id
GROUP BY c.data_criacao
Thank you very much, I did not know of the existence of this function.
– André Paiva
If it’s the answer to your question, don’t forget to accept @Andrépaiva
– novic