How can I modify my query to return 0 if count(*) is NULL?
select monthname(timestamp), year(timestamp), count(*)
from largehits
where largeID = someid
and (month(timestamp)<=somemonth
and month(timestamp)>=somemonth
and year(timestamp)<=someyear
and year(timestamp)>=someyear )
group by month(timestamp), year(timestamp)
order by timestamp asc
Thanks!