Report: Ranking Graphics

mfaqueiroz

Registered User.
Local time
Today, 08:23
Joined
Sep 30, 2015
Messages
125
Hello,
I analyse machine behaviours. So, i have one table with the MachineName and the defect that occured.
I want to count the number of times that each defect appeared and do report with a ranking chart, only with te top 5!

The follow picture shows the main ideia:

ranking.jpg

Do you know how can i do that?


Thank you

:)
 
Consider SQL like . . .
Code:
SELECT TOP 5 Machine, Count(*) As DefectCount
FROM tMachineDefect
GROUP BY Machine
ORDER BY Count(*) DESC;
. . . to return the data you want.
 

Users who are viewing this thread

Back
Top Bottom