L
Love Buzz
Hello all.
My SQL view is below. Here is what I have. Two seperate tables that I am
trying to bring together. I have created two Queries and what I am trying to
do below is calculate the percentage of the employees errors compared to the
volume they have processed. I have joined the 'User ID' field together to
accomplish this. However, when I run the query, I get the 'You tried to
execute a query that does not include the specified expression (expr 4 below)
as part of an aggregate function.'
Any idea how to accomplish the result I am looking for? Thanks so much for
your help.
SELECT Errors.[User ID], Count(Errors.[Error Indicator]) AS [CountOfError
Indicator], [CountOfError Indicator]/[Individual Associate
Statistics]![SumOfItems] AS Expr4
FROM [Individual Associate Statistics] INNER JOIN Errors ON [Individual
Associate Statistics].UserID = Errors.[User ID]
WHERE (((Errors.[Notification Date]) Between [StartDate] And [EndDate] And
(Errors.[Notification Date]) Between [StartDate] And [EndDate] And
(Errors.[Notification Date]) Between [StartDate] And [EndDate]))
GROUP BY Errors.[User ID]
HAVING (((Errors.[User ID]) Like [Enter Employee User ID] & "*"));
My SQL view is below. Here is what I have. Two seperate tables that I am
trying to bring together. I have created two Queries and what I am trying to
do below is calculate the percentage of the employees errors compared to the
volume they have processed. I have joined the 'User ID' field together to
accomplish this. However, when I run the query, I get the 'You tried to
execute a query that does not include the specified expression (expr 4 below)
as part of an aggregate function.'
Any idea how to accomplish the result I am looking for? Thanks so much for
your help.
SELECT Errors.[User ID], Count(Errors.[Error Indicator]) AS [CountOfError
Indicator], [CountOfError Indicator]/[Individual Associate
Statistics]![SumOfItems] AS Expr4
FROM [Individual Associate Statistics] INNER JOIN Errors ON [Individual
Associate Statistics].UserID = Errors.[User ID]
WHERE (((Errors.[Notification Date]) Between [StartDate] And [EndDate] And
(Errors.[Notification Date]) Between [StartDate] And [EndDate] And
(Errors.[Notification Date]) Between [StartDate] And [EndDate]))
GROUP BY Errors.[User ID]
HAVING (((Errors.[User ID]) Like [Enter Employee User ID] & "*"));