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 (3496,3515,3550,3599,3604,3637,3638,3664,3685,3686,3689,3692,4898,4970,5471,5671,6502,8326,8639,10608,11316,14620,14674,14692,14782,16112,16422,16423,16677,16728,16804,16832,18295,18809,18811,18978,18980,19200,19260,19273,20409,20597,21078,21080,21244,21245,21246,21257,21379,21385,21392,21871,21872,21874,21879)
GROUP BY subtyp1 |