-1
I’m using the type datatime and trying to perform a select that counts emissions day-to-day to mount a comparison chart of the days of a given month.
However, when grouping the dates it is returning the repeated days and adding up only the emissions of a specific hour of such day.
select count(solicitacao as emissões, dataSituacao
from certificado
where status like 'EMITIDO%'
and dataSituacao BETWEEN '2020-10-01' and '2020-10-31'
group by dataSituacao
order by count(solicitacao) desc;