MySQL select date, join statistic data - how?
Posted
by Webnet
on Stack Overflow
See other posts from Stack Overflow
or by Webnet
Published on 2010-04-22T20:31:58Z
Indexed on
2010/04/22
20:43 UTC
Read the original article
Hit count: 150
I have some statistics I need to report on a monthly basis. I need my query to return 0's for statistics which aren't there. The only way I know to do this is to use SQL to generate a list of days within the specified time period and LEFT JOIN
the statistic data that I need to report on.
Problem is.... I've never not selected from a table like that... how do I do that?
© Stack Overflow or respective owner