how to combine the related version in group by
- by randeepsp
select count(a),b,c
from APPLE
join MANGO on (APPLE.link=MANGO.link)
join ORANGE on (APPLE.link=ORANGE.link)
where id='camel'
group by b,c;
the column b gives values like
1.0
1.0,R
1.0,B
2.0
2.0,B
2.0,R
3.0,C
3.0,R
is there a way to modify the above quer so that all 1.0 and 1.0,R and 1.0,B are merged as 1.0
and 2.0,2.0,B are merged as 2.0…