I have the following table:
Service_ID feedback
31 1
32 1
33 1
I have the following query to find the sum:
SELECT Service_ID,SUM(consumer_feedback) FROM consumer5 group by Service_ID
I have to get the output as
31 1
32 1
33 1
I am getting it. But for my project I have 34, 35 also. I should get output as
31 1
32 1
33 1
34 0
35 0