SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and upper(subtyp1)<>'EMPTY' and style_id IN (419,439,1556,1560,2006,3556,3560,3627,4388,4991,4998,5005,5383,5461,6131,8003,8005,9783,13949,14492,14828,15454,15502,16399,16500,16597,16748,16805,18314,18822,19334,21002,21242,21390)
GROUP BY subtyp1 |