C
carmen
I have the following query that needs to be reworked. I have combined the
severity fields into one. The data that is stored in the fileld is S1,S2,S3
or null. How can I rework the query below to produce the same results
Thanks
Carmen
SELECT Format([closeddate],' mmmm yyyy') AS [Month], Count(calls.Severity1)
AS CountOfSeverity1, Count(calls.Severity2) AS CountOfSeverity2,
Count(calls.Severity3) AS CountOfSeverity3,
Sum(IIf(calls.Calltyp="Question",1,0)) AS Question,
Sum(IIf(calls.Calltyp="Other",1,0)) AS Other, Count(Format([closeddate],'
mmmm')) AS total
FROM calls
WHERE (((calls.ClosedDate) Is Not Null))
GROUP BY Format([closeddate],' mmmm yyyy'), Month([closeddate])
ORDER BY Month([closeddate]);
severity fields into one. The data that is stored in the fileld is S1,S2,S3
or null. How can I rework the query below to produce the same results
Thanks
Carmen
SELECT Format([closeddate],' mmmm yyyy') AS [Month], Count(calls.Severity1)
AS CountOfSeverity1, Count(calls.Severity2) AS CountOfSeverity2,
Count(calls.Severity3) AS CountOfSeverity3,
Sum(IIf(calls.Calltyp="Question",1,0)) AS Question,
Sum(IIf(calls.Calltyp="Other",1,0)) AS Other, Count(Format([closeddate],'
mmmm')) AS total
FROM calls
WHERE (((calls.ClosedDate) Is Not Null))
GROUP BY Format([closeddate],' mmmm yyyy'), Month([closeddate])
ORDER BY Month([closeddate]);