SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and upper(subtyp1)<>'EMPTY' and style_id IN (6139,6240,6265,6275,6295,11402,11404,14515,16399,16400,16401,17910,17913,19972,19974,20150,20431,20875,20876,21402,21404,21405,21406,21407,21408,21410,21541,21543,21544,21545,21546,21547,21548,21549,22108)
GROUP BY subtyp1 |