Hello All,
I want to see if there is a simple way to do this. Basically I have a DB that keeps daily entries. Well some days there are no entries because the system was down.
I can easily find how many entries I have on the days that I have entries.
But how do I find or include the days that have 0 entries?
Casper
There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
I want to see if there is a simple way to do this. Basically I have a DB that keeps daily entries. Well some days there are no entries because the system was down.
I can easily find how many entries I have on the days that I have entries.
Code:
SELECT CONVERT(char(12), setsysdt, 2) AS NewDate, COUNT(*) As StatCount FROM statlog
GROUP BY CONVERT(char(12), setsysdt, 2)
ORDER BY CONVERT(char(12), setsysdt, 2)
Casper
There is room for all of gods creatures, "Right Beside the Mashed Potatoes".