We have data like this. (The x to the right is added for clarity - it identifies pending records, see below):
Group Submitted Executed
-------- ---------- ----------
Group 1 200103 200104 x
Group 1 199904 Null
Group 1 200103 200103
Group 1 200103 Null x
Group 2 200103 200105 x
Group 2 200103 200104 x
Group 2 200104 200105
Group 2 200105 200105
Group 2 200105 200107
The report should look like this (for 200103).
This means March of 2001.
Group Submitted Executed Pending
-------- --------- -------- -------
Group 1 3 1 2
Group 2 2 0 2
Pending = Submitted during the month but not executed during the month (Executed is Null or later).
We are really struggling to get the counts for the groups, especially the pending data.
Any help wouls be greatly appreciated.
Thanks
Group Submitted Executed
-------- ---------- ----------
Group 1 200103 200104 x
Group 1 199904 Null
Group 1 200103 200103
Group 1 200103 Null x
Group 2 200103 200105 x
Group 2 200103 200104 x
Group 2 200104 200105
Group 2 200105 200105
Group 2 200105 200107
The report should look like this (for 200103).
This means March of 2001.
Group Submitted Executed Pending
-------- --------- -------- -------
Group 1 3 1 2
Group 2 2 0 2
Pending = Submitted during the month but not executed during the month (Executed is Null or later).
We are really struggling to get the counts for the groups, especially the pending data.
Any help wouls be greatly appreciated.
Thanks