SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CAMP AND HIKE' and typ='SLEEP GEAR' and subtyp1='Sleeping Bags' and upper(subtyp2)<>'EMPTY' and style_id IN (581,4733,4736,4739,4740,4741,4743,4744,4752,4753,4771,14003,14548,14550,14586,14790,15311,15477,15478,16102,16722,19096,19097,19098,19100,19101,19335,19336,19337,19348,20130,21635,21636,21637,21638,21779,21780)
GROUP BY subtyp2 |