SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='KIDS' and subtyp1='Accessories' and upper(subtyp2)<>'EMPTY' and style_id IN (3384,3409,5193,5194,5425,10764,10776,10867,10869,10887,11540,13940,14236,14406,16023,16024,16351,16499,17815,17816,17864,17865,17866,20056,20227,20228,20229,20527,20530,20531,10792,10868,10886)
GROUP BY subtyp2 |