SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MENS' and upper(subtyp1)<>'EMPTY' and style_id IN (3346,3349,3354,3589,3664,3669,3689,4954,4973,4995,8639,10286,11626,14619,14620,14842,15448,16511,16512,16832,16995,17610,17646,17859,18655,19057,19192,19998,20210,20212,20409,21244,21248,21256,21392,21608,21872,21879)
GROUP BY subtyp1 |