I have the following table.
mysql> select * from consumer9; +------------+--------------+-------------------+ | Service_ID | Service_Type | consumer_feedb
Use the having clause instead of where
having
where
SELECT Service_ID, Service_Type, SUM(consumer_feedback) FROM consumer9 GROUP BY Service_ID HAVING Service_Type='Printer';
Regards.