Query based on String value in list

access_viper

Registered User.
Local time
Today, 02:53
Joined
Mar 7, 2008
Messages
15
Hello again.

I have a drop-down list that contains string values. Is it possible to construct a query that will sum the total number of times that the string value is selected? For example,

String Value Sum
================
Chicken 3
Beef 9
Pork 2


I have been trying to work on this for a while and cannot figure it out. Can someone shed some light on this issue? Thanks.
 
Try

SELECT String, Count(String) AS HowMany
FROM TableName
GROUP BY String
 

Users who are viewing this thread

Back
Top Bottom