Hi All,
I have this query for counting number of records per week:
This works great and the results look like:
WEEKNO COUNT
49 5
50 6
51 3
52 5
But I would like to modify it to show the date of the first day of each week as a seperate column.
Also I would like to include future weeks (notice the report goes into the future) where the results will be 0.
Thanks in advance
-Al
I have this query for counting number of records per week:
Code:
SELECT DatePart("ww", [DateStart]) AS weekno, count(*)
FROM MAS
WHERE DateStart Between #11/01/2017# AND #01/30/2018#
GROUP By DatePart("ww", [DateStart]);
This works great and the results look like:
WEEKNO COUNT
49 5
50 6
51 3
52 5
But I would like to modify it to show the date of the first day of each week as a seperate column.
Also I would like to include future weeks (notice the report goes into the future) where the results will be 0.
Thanks in advance
-Al