Querying data - Graph Report

A

Alaska1

I have to create a report for the query below

SELECT ClericalMetrics.PS_ID, PerformanceSupervisor.PerformanceSupervisor,
ClericalMetrics.[Time Sheet Errors], Count(ClericalMetrics.[Time Sheet
Errors]) AS [CountOfTime Sheet Errors], ClericalMetrics.TimeSheetErrors2,
Count(ClericalMetrics.TimeSheetErrors2) AS CountOfTimeSheetErrors2,
ClericalMetrics.TimeSheetErrors3, Count(ClericalMetrics.TimeSheetErrors3) AS
CountOfTimeSheetErrors3, ClericalMetrics.TimeSheetErrors4,
Count(ClericalMetrics.TimeSheetErrors4) AS CountOfTimeSheetErrors4
FROM ClericalMetrics LEFT JOIN PerformanceSupervisor ON
ClericalMetrics.PS_ID = PerformanceSupervisor.PS_ID
GROUP BY ClericalMetrics.PS_ID, PerformanceSupervisor.PerformanceSupervisor,
ClericalMetrics.[Time Sheet Errors], ClericalMetrics.TimeSheetErrors2,
ClericalMetrics.TimeSheetErrors3, ClericalMetrics.TimeSheetErrors4;

I need the data to be grouped by Performance Supervisor - count each error
in the 4 different timesheet errors field so that I graph the data. There
are errors in the 4 different fields.
 

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