I am trying to gather a set of MI which counts the number of 'events' for a day. As this is MI i also need to list the days which haven't got any 'events' listed. My query is as follows:
SELECT
event_timestamp,
COUNT(*)
FROM
table1
GROUP BY
event_timestamp
ORDER BY
event_timestamp
;
Is there anyway this query can be modified to show all dates (not just the ones with events) and if possible show '0' for the dates with no events?