S
SpookiePower
I have an SQL that counts how many records there
is between hour 0 to 5, and groups them into days.
My SQL looks like this -
SELECT DateValue(daReportDate) AS Dato, Count(daReportDate) AS Antal
FROM TReport
WHERE hour(daReportDate) between 0 and 5
GROUP BY DateValue(daReportDate)
ORDER BY count(daReportDate) DESC;
Now I would like too know how many days a year, that have more
than one record, between hour 0 to 5. I think that I have
to change the GROUP and ORDER lines, but I'm not sure.
Can some one help me here ?
is between hour 0 to 5, and groups them into days.
My SQL looks like this -
SELECT DateValue(daReportDate) AS Dato, Count(daReportDate) AS Antal
FROM TReport
WHERE hour(daReportDate) between 0 and 5
GROUP BY DateValue(daReportDate)
ORDER BY count(daReportDate) DESC;
Now I would like too know how many days a year, that have more
than one record, between hour 0 to 5. I think that I have
to change the GROUP and ORDER lines, but I'm not sure.
Can some one help me here ?