SELECT CASSA.GIORNO, Count(CASSA.SCONTRINO) AS CONTASCONTRINO
FROM CASSA
WHERE CASSA.ANNULL IS NULL AND CASSA.ANNO='2021' AND CASSA.MESE='8'
GROUP BY CASSA.GIORNO
but i need to count distinct SCONTRINO
In my case the day 01/08/2021 have 11 SCONTRINO
FROM CASSA
WHERE CASSA.ANNULL IS NULL AND CASSA.ANNO='2021' AND CASSA.MESE='8'
GROUP BY CASSA.GIORNO
but i need to count distinct SCONTRINO
In my case the day 01/08/2021 have 11 SCONTRINO