SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MENS' and subtyp1='By Activity' and upper(subtyp2)<>'EMPTY' and style_id IN (421,435,2136,2137,2138,2141,2145,2148,2156,2162,2821,5851,5864,5868,5874,5875,5876,5882,5884,5900,6502,7437,8639,10254,10286,10338,10501,10608,10631,10687,10718,10729,11557,14374,14782,14806,14842,15105,16802,16804,18509,18811,19069,20857,21246,21715,21741,11356)
GROUP BY subtyp2 |