Good afternoon,
Currently I am developing an app where I list the month and sum of the consumption of each month in KW as shown in the print below:
I just do not know how I would do to instead of listing the number of the month it appears the name of the month referring to the number, at the moment I am using the following SQL command:
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