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 (1561,1562,3496,3515,3550,3604,3638,3664,3666,3669,4898,4970,4990,4993,5002,5471,7437,9784,10254,10338,10729,11291,11316,14072,14620,14674,15518,15852,16832,17720,18295,18430,18811,19260,19273,20593,20597,21244,21245,21246,21256,21379,21385,21392)
GROUP BY subtyp1 |