Hello, I'd like to know how to solve this problem. I would take the name of the days of the month and order them and not the numbers of the corresponding months. It follows the query that I performed but that only orders in numbers corresponding to the months.
SELECT to_char(hsp_checkin, 'month') as "Mês",
count(hsp_id) as "Total de Hospedagens"
FROM HOSPEDAGENS
GROUP BY to_char(hsp_checkin, 'month');
Minor correction in the question description. "I would like to take the name of the days of the month" is actually: I would like to get the name of the months.