P
Paul
Hi,
I like to created a weekly Statistics below:
week of: 04/27/03 to 05/03/03
Prior Current
Unit Backlog Received Processed Backlog
------- -------- --------- -------
A 1 2 2 1
B 0 5 3 2
C 0 0 0 0
Definition:
The Prior backlog are the requests with Created date
before 04/27/03 and the Status is Not Finished.
The Received are the requests with Created date between
04/27/03 and 5/03/03
The Processed are the requests with Completed date between
04/27/03 and 5/03/03
The Current Backlog are the requests with Created date
before 05/03/03 and the Status is Not Finished.
There are two tables involved, how can I created a
crossTab query like that? Or I tried to wrote 4 SQL
scripts, each will generate the rows and one column, but I
don't know how to combine them? When using Union All, it
only come one column.
Thanks for your kindly advise.
I like to created a weekly Statistics below:
week of: 04/27/03 to 05/03/03
Prior Current
Unit Backlog Received Processed Backlog
------- -------- --------- -------
A 1 2 2 1
B 0 5 3 2
C 0 0 0 0
Definition:
The Prior backlog are the requests with Created date
before 04/27/03 and the Status is Not Finished.
The Received are the requests with Created date between
04/27/03 and 5/03/03
The Processed are the requests with Completed date between
04/27/03 and 5/03/03
The Current Backlog are the requests with Created date
before 05/03/03 and the Status is Not Finished.
There are two tables involved, how can I created a
crossTab query like that? Or I tried to wrote 4 SQL
scripts, each will generate the rows and one column, but I
don't know how to combine them? When using Union All, it
only come one column.
Thanks for your kindly advise.