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 (3347,3676,4960,7437,8327,10338,10934,14073,14143,15375,15881,16724,16727,16861,16866,16933,16958,16998,17002,17650,18186,18429,18615,19007,19009,19042,19122,19231,19384,19885,19994,20002,20003,20027,20383,20504,20602,21395,21714,21877)
GROUP BY subtyp1 |