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,826,1556,1560,1956,2006,3309,3556,3560,3622,3627,4388,4960,4991,5005,5026,5383,5461,6131,6132,6133,8003,8005,8152,8246,9783,11309,11625,13949,14073,14828,15454,15502,15881,16399,16500,16597,16628,16727,16748,16805,16829,16866,16958,17519,17520,17609,18133,18185,18186,18427,18429,18538,18822,19009,19042,19076,19122,19334,20211,20213,20507,21002,21242,21318,21390)
GROUP BY subtyp1 |