In the below Union query, I'm trying to set the number of decimal places to 2 on Score field. What do I need to add to the query to do this?
Thanks again..
Mike
I'm using Acess 2003
SELECT [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department, Avg([GreetScore]+([ClientScore]*10)+([AccruacyScore]*8)+[ClosingScore]) AS Score
FROM ([R&R_PhoneAssessment] INNER JOIN [R&R_Employees] ON [R&R_PhoneAssessment].Agent = [R&R_Employees].EmployeeID) INNER JOIN [R&R_Departments] ON [R&R_Employees].Department = [R&R_Departments].Department
WHERE ((([R&R_PhoneAssessment].CallDate)>=#4/1/2006# And ([R&R_PhoneAssessment].CallDate)<=#4/30/2006#) AND (([R&R_PhoneAssessment].Auditor)=1))
GROUP BY [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department
ORDER BY [R&R_Employees].EmployeeID;
UNION SELECT [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department, Avg([GreetScore]+([ClientScore]*10)+([AccruacyScore]*8)+[ClosingScore]) AS Score
FROM ([R&R_OutBoundPhoneAssessment] INNER JOIN [R&R_Employees] ON [R&R_OutBoundPhoneAssessment].Agent = [R&R_Employees].EmployeeID) INNER JOIN [R&R_Departments] ON [R&R_Employees].Department = [R&R_Departments].Department
WHERE ((([R&R_OutBoundPhoneAssessment].CallDate)>=#4/1/2006# And ([R&R_OutBoundPhoneAssessment].CallDate)<=#4/30/2006#) AND (([R&R_OutBoundPhoneAssessment].Auditor)=1))
GROUP BY [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department
ORDER BY [R&R_Employees].EmployeeID;
Thanks again..
Mike
I'm using Acess 2003
SELECT [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department, Avg([GreetScore]+([ClientScore]*10)+([AccruacyScore]*8)+[ClosingScore]) AS Score
FROM ([R&R_PhoneAssessment] INNER JOIN [R&R_Employees] ON [R&R_PhoneAssessment].Agent = [R&R_Employees].EmployeeID) INNER JOIN [R&R_Departments] ON [R&R_Employees].Department = [R&R_Departments].Department
WHERE ((([R&R_PhoneAssessment].CallDate)>=#4/1/2006# And ([R&R_PhoneAssessment].CallDate)<=#4/30/2006#) AND (([R&R_PhoneAssessment].Auditor)=1))
GROUP BY [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department
ORDER BY [R&R_Employees].EmployeeID;
UNION SELECT [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department, Avg([GreetScore]+([ClientScore]*10)+([AccruacyScore]*8)+[ClosingScore]) AS Score
FROM ([R&R_OutBoundPhoneAssessment] INNER JOIN [R&R_Employees] ON [R&R_OutBoundPhoneAssessment].Agent = [R&R_Employees].EmployeeID) INNER JOIN [R&R_Departments] ON [R&R_Employees].Department = [R&R_Departments].Department
WHERE ((([R&R_OutBoundPhoneAssessment].CallDate)>=#4/1/2006# And ([R&R_OutBoundPhoneAssessment].CallDate)<=#4/30/2006#) AND (([R&R_OutBoundPhoneAssessment].Auditor)=1))
GROUP BY [R&R_Employees].EmployeeID, [R&R_Employees].BNumber, [R&R_Departments].DepartmentID, [R&R_Departments].Department
ORDER BY [R&R_Employees].EmployeeID;