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 (2444,3347,3676,4960,7437,8154,8183,8202,8327,8664,10338,10631,10934,14073,14143,14782,15090,15517,15881,16724,16727,16861,16866,16939,16958,16998,17002,17650,18615,19042,19068,19122,19231,19384,19885,19994,20002,20003,20005,20027,20203,20383,20602,20912,20972,20993,21395,21396,21714)
GROUP BY subtyp1 |