Here is my SQL 2000 query code which works just fine:
SELECT 2012 AS completed_year, completed_week, count(completed_week) AS completed_wo
FROM mwo.dbo.mwo
WHERE (responsible_status = 'complete') and (completed_year = 2012)
GROUP BY completed_week;
My issue is that when this query runs and returns the data, week #27 and week #47 are missing from the data set and ultimately my graph because no data exists for these 2 weeks. So, my question is how to "force" these 2 weeks to appear with a 0 (zero).
Thanks so much and a very Merry Christmas to all.
SELECT 2012 AS completed_year, completed_week, count(completed_week) AS completed_wo
FROM mwo.dbo.mwo
WHERE (responsible_status = 'complete') and (completed_year = 2012)
GROUP BY completed_week;
My issue is that when this query runs and returns the data, week #27 and week #47 are missing from the data set and ultimately my graph because no data exists for these 2 weeks. So, my question is how to "force" these 2 weeks to appear with a 0 (zero).
Thanks so much and a very Merry Christmas to all.