I have a query which returns data in following format:
xxx yyy count
-------------------------------
a cat1 23
a cat2 34
a cat3 12
b cat1 34
b cat2 1
b cat3 2
c cat1 34
c cat2 123
c cat3 34
d cat1 34
d cat2 12
d cat3 34
I need to modify my query in such a way that i need to categorize two values of yyy column into single and combine their count
xxx yyy count
-------------------------------
a cat1 23
a cat2 & cat3 36
b cat1 34
b cat2 & cat3 3
c cat1 34
c cat2 & cat3 157
d cat1 34
d cat2 & cat3 36
请建议您是否有任何想法。