Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count how many times a word shows up in a field and calculate the %

Status
Not open for further replies.

SeadnaS

Programmer
May 30, 2011
214
I have a field in my only table. Its a text field and only contains to words pass and fail i want to find out what the percentage of pass to fails is. Is there a way of counting the words and working out the percentage of passes?

Any help much appreciated.
 
A starting point:
SELECT [text field], COUNT(*) AS CountOf
FROM [my only table]
GROUP BY [text field]

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks got a pie chart working! That may be suitable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top