| SQL to return counts of values
|
Joff

msg:3396333 | 10:52 pm on Jul 16, 2007 (gmt 0) | I'm trying to accomplish this with one DB call if possible. I've got a table with a "where did you hear about us" column, the contents are predetermined and are for example "google, friend, word of mouth, other". Is there a way to return a count of this column and group the results by answer type? Eg: Google (245) Friend (23) Word of Mouth (83) Other (34)
|
|