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 (421,3496,3515,3550,3599,3604,3637,3638,3666,3669,3675,3687,3689,3692,4898,5671,6176,6502,7437,8318,8326,8328,8639,10286,11316,14374,14619,14674,14842,15105,15514,15515,15852,16422,16423,16804,16832,18295,18809,18978,18980,19200,19260,19273,20597,21244,21245,21246,21248,21256,21257,21379,21385,21392)
GROUP BY subtyp1 |