R
Russell Reimann
Hi,
I need some assistance with a query in Access 2000.
I have a single table which contains the model number of a widget and the
date that it was created. So, for example, in the first column, I would
have "Model1", "Model2", "Model3", "Model2", etc. The second column would
contain 01/17/2005, 12/28/2004, 12/29/2004, 12/07/2004, etc.
I need a query that will count, cumulatively, the number of widgets made
each week, where each week begins on a Monday. I run this query every
month. What would the SQL look like? I want the output table to have the
name of the week in one column, and the count for that week in the second.
So, for example, I would like to have output as follows:
WeekBegin NumWidgetsCreated
========================
wk120604 18
wk121304 172
wk122004 0
wk030705 95
Obviously I need to group by week, but how does Access know that a week
should begin on a Monday?
Thanks in advance,
Russ
I need some assistance with a query in Access 2000.
I have a single table which contains the model number of a widget and the
date that it was created. So, for example, in the first column, I would
have "Model1", "Model2", "Model3", "Model2", etc. The second column would
contain 01/17/2005, 12/28/2004, 12/29/2004, 12/07/2004, etc.
I need a query that will count, cumulatively, the number of widgets made
each week, where each week begins on a Monday. I run this query every
month. What would the SQL look like? I want the output table to have the
name of the week in one column, and the count for that week in the second.
So, for example, I would like to have output as follows:
WeekBegin NumWidgetsCreated
========================
wk120604 18
wk121304 172
wk122004 0
wk030705 95
Obviously I need to group by week, but how does Access know that a week
should begin on a Monday?
Thanks in advance,
Russ