I have a question about my mysql query. I want to count the number of records per day. That works, but I also want to see the dates on which the count is 0. The dates where the total is 0 is not in the resultset. How do I do that? This is my current query:
SELECT COUNT(id) AS total_per_day,
DATE_FORMAT(reg_date, "%Y-%m-%d") as my_date
FROM my_table GROUP BY my_date
Thanks in advance for your replies.