Hi,
I have a chart which is counting the number of times each specific ID (ProcessID) number occurs in a master table (ProblemTable). See attached for view of chart.
The chart is a bar chart with a simple count and the horizontal axis has each of the unique ProcessID's. However, instead of the ProcessID, I'd like the associated ProcessName which is given in ProcessTable to be on the horizontal axis.
Here is the SQL code that I used for the simple ProcessID count on the chart:
Code:
SELECT ProblemTable.[ProcessID], Count(ProblemTable.[ProcessID]) AS CountOfProcessID
FROM ProblemTable
GROUP BY ProblemTable.[ProcessID];
Here is the SQL code that I came up with to change the axis to ProcessName (but doesn't currently work):
Code:
SELECT ProblemTable.[ProcessID], ProcessTable.[ProcessName], Count(ProblemTable.[ProcessName]) AS CountOfProcessID
FROM ProblemTable INNER JOIN ProcessTable
ON ProblemTable.[ProcessID] = ProcessTable.[ProcessID]
GROUP BY ProblemTable.[ProcessName];
Thanks for your help.
Jake