View Single Post
  #1 (permalink)  
Old 17-03-05
DanielCoe's Avatar
DanielCoe DanielCoe is offline
Home is where I hang my @
 
Join Date: Sep 2003
Location: My Bedroom
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
DanielCoe is an unknown quantity at this point
  How can I select every date in a given month?

Hi,

I need to select every date in a given month for a report. How can I do this in MySQL?

Originally the report was selecting all data we have for certain days, but some days there maybe no data at all, so I want to display rows even though there is no data for that date and show it as a '0' or blank.

So I thought the best way to do it would be to select all the days in a month first then see if there is any data on that date, but I don't know how to select every day in a given month.

Any helpers?

Thanks

Daniel
Reply With Quote
Sponsored Links