I have tried numerous variations of this query, to no avail.
Weather table contains many fields including dates and rain amount per date. I need a result that will list the calendar week, and the count of days that had rain>0, including ALL the week numbers ie: Calendar Wk#18 had no days with rain and I want that to show. Thank you for any help!!!
SELECT DatePart("ww",[date],2,2) AS KW, count(IIf(IsNull([rain]),0,[rain])) AS CtRain
FROM apg
WHERE (((Year([date])) Between 1993 And 2002))
GROUP BY DatePart("ww",[date],2,2)
HAVING sum(rain)>0;
Weather table contains many fields including dates and rain amount per date. I need a result that will list the calendar week, and the count of days that had rain>0, including ALL the week numbers ie: Calendar Wk#18 had no days with rain and I want that to show. Thank you for any help!!!
SELECT DatePart("ww",[date],2,2) AS KW, count(IIf(IsNull([rain]),0,[rain])) AS CtRain
FROM apg
WHERE (((Year([date])) Between 1993 And 2002))
GROUP BY DatePart("ww",[date],2,2)
HAVING sum(rain)>0;