M
macroapa
Hi, I have the following SQL for a cross tab query:
TRANSFORM Count(Table2.DateIn) AS CountOfDateIn1
SELECT Table2.DateIn
FROM Table2
GROUP BY Table2.DateIn
PIVOT Table2.Process;
It works great and produces the dates down the left and the processes
across the top with the counting in teh main part.
However what I would love to achieve is teh same, but with the dates
down the left being the last 52 weekly periods from today.
Is this possible at all?
Main table structure:
ID Process DateIn
1 DDI 01/09/2008
2 DDO 02/09/2008
3 ddi 01/09/2008
CrossTab results
DateIn DDI DDO
01/09/2008 2
02/09/2008 1
What I would like it to look like:
DateIn DDI DDO
wk beg 15/09/2008 2
wk beg 08/09/2008 1
etc etc
TRANSFORM Count(Table2.DateIn) AS CountOfDateIn1
SELECT Table2.DateIn
FROM Table2
GROUP BY Table2.DateIn
PIVOT Table2.Process;
It works great and produces the dates down the left and the processes
across the top with the counting in teh main part.
However what I would love to achieve is teh same, but with the dates
down the left being the last 52 weekly periods from today.
Is this possible at all?
Main table structure:
ID Process DateIn
1 DDI 01/09/2008
2 DDO 02/09/2008
3 ddi 01/09/2008
CrossTab results
DateIn DDI DDO
01/09/2008 2
02/09/2008 1
What I would like it to look like:
DateIn DDI DDO
wk beg 15/09/2008 2
wk beg 08/09/2008 1
etc etc