Hi Folks,
Access 2003.
I'd be grateful for a bit of a kickstart here.
I've got a table with records that have a process day column, anything under 3 and we've met our SLA, 4 days or more and it's a fail.
Here's the relevant data...
RecDate RefNo ProcessBy CompDate ProcessDays
26/09/2007 77920 Joe 27/09/2007 2
26/09/2007 77128 Joe 01/10/2007 4
26/09/2007 21885 Joe 27/09/2007 2
26/09/2007 77841 Joe 01/10/2007 4
26/09/2007 43522 Joe 27/09/2007 2
and my query, which isn't quite right.
It splits the data into 2 rows but doesn't count the ProcessDays.
SELECT tblClaims.ProcessBy, Count(tblClaims.ProcessBy) AS [Count], tblClaims.RecDate,
IIf([tblClaims.ProcessDays]) <3 ,1,0) AS [SLA MET],
IIf([tblClaims.ProcessDays] >3 ,1,0) AS [SLA NOT MET]
FROM tblClaims
WHERE (((tblClaims.RecDate) Between #9/24/2007# And #9/27/2007#))
AND ((tblClaims.ProcessBy)="Joe")
GROUP BY tblClaims.ProcessBy, tblClaims.RecDate, ProcessDays
ORDER BY tblClaims.RecDate;
ProcessBy Count RecDate SLA MET SLA NOT MET
Joe 3 26/09/2007 1 0
Joe 2 26/09/2007 0 1
Sorry if this post looks a bit messy.
Cheers,
Jon
Access 2003.
I'd be grateful for a bit of a kickstart here.
I've got a table with records that have a process day column, anything under 3 and we've met our SLA, 4 days or more and it's a fail.
Here's the relevant data...
RecDate RefNo ProcessBy CompDate ProcessDays
26/09/2007 77920 Joe 27/09/2007 2
26/09/2007 77128 Joe 01/10/2007 4
26/09/2007 21885 Joe 27/09/2007 2
26/09/2007 77841 Joe 01/10/2007 4
26/09/2007 43522 Joe 27/09/2007 2
and my query, which isn't quite right.
It splits the data into 2 rows but doesn't count the ProcessDays.
SELECT tblClaims.ProcessBy, Count(tblClaims.ProcessBy) AS [Count], tblClaims.RecDate,
IIf([tblClaims.ProcessDays]) <3 ,1,0) AS [SLA MET],
IIf([tblClaims.ProcessDays] >3 ,1,0) AS [SLA NOT MET]
FROM tblClaims
WHERE (((tblClaims.RecDate) Between #9/24/2007# And #9/27/2007#))
AND ((tblClaims.ProcessBy)="Joe")
GROUP BY tblClaims.ProcessBy, tblClaims.RecDate, ProcessDays
ORDER BY tblClaims.RecDate;
ProcessBy Count RecDate SLA MET SLA NOT MET
Joe 3 26/09/2007 1 0
Joe 2 26/09/2007 0 1
Sorry if this post looks a bit messy.
Cheers,
Jon