need 1 query pulling 3 different count(totals)

K

Kim T

TotalCalls
CompletedCalls
RollOverCalls

DateStart
DateCompleted

I count total calls from Date Start; I get total CompletedCalls if DateStart
=DateCompleted; I get total RollOverCalls if DateCompleted>DateStart this is
on 3 different queries when I try to put as 1 query I cant get it to work
correctly need help please
KT
 
K

KARL DEWEY

Try this ---
SELECT Count(Kim_T.DateStart) AS [Total Calls],
Sum(IIf(Int([DateStart])=Int([DateCompleted]),1,0)) AS CompletedCalls,
Sum(IIf([DateCompleted]>[DateStart],1,0)) AS RollOverCalls
FROM Kim_T;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top