mysql count query
- by S.PRATHIBA
Hi all,
i have the following table:
mysql select * from consumer1;
Service_ID | Service_Type | consumer_feedback
31 Printer -1
34 Printer 0
31 Printer 0
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
34 Printer 1
I need a query such that I need THE COUNT(Service_ID)=2 AS Service_ID is 31 and 34.Please help me and give me some suggestions.