I have a table of posts to a website, where each entry has its creation date.
I want to return a table like:
Date Posts
16-11-2009 5
17-11-2009 0
18-11-2009 4
etc
But I'm struggling to find the right SQL. I can easily get a count of posts grouped by date, but this doesn't return the dates when there are no posts (eg it misses out 17-11-2009).
Is there some SQL that will give me what I want? Or should I use some non-SQL code to deal with the days with no posts?