M
Michelle
I'm trying to use the below query in a report that is using several queries.
I need to add up how much time they spent doing each of the following [C/R
G/I B/GCheck], [DatabaseCheck], [NAFTA Check],[Referral Check], [Billing
Record Check], [A/O] and [Electronics] but I can't get it to total each of
them seperately.
SELECT PDIG.[Date Received], PDIG.[Associate Last Name], PDIG.[Associate
First Name], Sum(PDIG.[Time Spent]) AS [SumOfTime Spent], -Sum(PDIG.[C/R G/I
B/G Check]) AS CrGiBgChecked, -Sum(PDIG.[Database Check]) AS DatabaseChecked,
-Sum(PDIG.[NAFTA Check]) AS NAFTAChecked, -Sum(PDIG.[Referral Check]) AS
ReferralCheck, -Sum(PDIG.[Billing Record Check]) AS BillingRecordChecked,
-Sum(PDIG.[A/O]) AS AOChecked, -Sum(PDIG.[Electronics]) AS ElectronicsChecked
FROM PDIG
GROUP BY PDIG.[Date Received], PDIG.[Associate Last Name], PDIG.[Associate
First Name], PDIG.[Time Spent]
HAVING (((PDIG.[Date Received]) Between #1/22/2007# And #1/26/2007#) AND
((PDIG.[Associate Last Name])="deskiewicz"));
I need to add up how much time they spent doing each of the following [C/R
G/I B/GCheck], [DatabaseCheck], [NAFTA Check],[Referral Check], [Billing
Record Check], [A/O] and [Electronics] but I can't get it to total each of
them seperately.
SELECT PDIG.[Date Received], PDIG.[Associate Last Name], PDIG.[Associate
First Name], Sum(PDIG.[Time Spent]) AS [SumOfTime Spent], -Sum(PDIG.[C/R G/I
B/G Check]) AS CrGiBgChecked, -Sum(PDIG.[Database Check]) AS DatabaseChecked,
-Sum(PDIG.[NAFTA Check]) AS NAFTAChecked, -Sum(PDIG.[Referral Check]) AS
ReferralCheck, -Sum(PDIG.[Billing Record Check]) AS BillingRecordChecked,
-Sum(PDIG.[A/O]) AS AOChecked, -Sum(PDIG.[Electronics]) AS ElectronicsChecked
FROM PDIG
GROUP BY PDIG.[Date Received], PDIG.[Associate Last Name], PDIG.[Associate
First Name], PDIG.[Time Spent]
HAVING (((PDIG.[Date Received]) Between #1/22/2007# And #1/26/2007#) AND
((PDIG.[Associate Last Name])="deskiewicz"));