I have a table with feedback ratings
Can I run one query and get a count on each response?
What's the table structure look like (i.e. how are the ratings stored)?
assuming one field called feedback with 3 potential values
SUM(IF(feedback = "Positive", 1,0)) AS Positive , SUM(IF(feedback = "Negative", 1,0)) AS Negative , SUM(IF(feedback = "neutral", 1,0)) AS neutral
Positive
Negative
neutral
Or just:
SELECT feedback, COUNT(*) FROM ratings GROUP BY feedback