SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CYCLING' and typ='ACCESSORIES' and upper(subtyp1)<>'EMPTY' and style_id IN (2140,5796,5802,5805,5806,5836,5895,9124,10666,13894,14654,14685,14687,15234,15954,16396,17342,17654,18256,19235,20135,20970,21238,21459,21461,21687,21814)
GROUP BY subtyp1 |