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 (580,581,4733,4734,4736,4739,4740,4741,4743,4744,4752,4753,4771,14003,14548,14550,14586,14790,15040,15311,15477,15478,16102,16722,17072,19096,19097,19098,19099,19100,19101,19335,19337,19348,20130)
GROUP BY subtyp2 |