R
red6000
Hi I have the following Query:
SELECT TOP 5 QuestionData.CSRName, Count(QuestionData.CSRName) AS
Number_of_CSRName,
FROM QuestionData
GROUP BY QuestionData.CSRName
ORDER BY Count(QuestionData.CSRName) DESC;
What I would like is a 2nd column that shows the percentage of the record vs
the total. IE if out of 100 records I would like my Top 5 query to produce:
CSRName Number_of_CSR Name Percentage_of-Total
Person8 25 25%
Person1 16 16%
Person2 15 15%
Person12 13 13%
Person11 10 10%
How can I do this?
Thanks
SELECT TOP 5 QuestionData.CSRName, Count(QuestionData.CSRName) AS
Number_of_CSRName,
FROM QuestionData
GROUP BY QuestionData.CSRName
ORDER BY Count(QuestionData.CSRName) DESC;
What I would like is a 2nd column that shows the percentage of the record vs
the total. IE if out of 100 records I would like my Top 5 query to produce:
CSRName Number_of_CSR Name Percentage_of-Total
Person8 25 25%
Person1 16 16%
Person2 15 15%
Person12 13 13%
Person11 10 10%
How can I do this?
Thanks