I have a query in mysql which gives me this
product count(*)
------- ---------
A 5
B 2
C 3
D 4
E 1
the query is simple like
select product,count(*) from dashboard group by product;
Now the problem is I wanted to merge the count of some products into other product so for example the expected output is
product count(*)
------- ---------
A 7
C 3
D 5
so count(A)=count(A) + count(B)
count(c) = count(C)
count(D)= count(D) + count(E)
I was thinking something like this
select case
when product = 'A' OR product = 'B' then ----
when product = 'C' then ----
end