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,8154,8183,10934,14073,15090,15517,15881,16724,16727,16861,16866,16939,17002,17650,18615,19122,19231,19885,19994,20002,20003,20027,20602,20912,20972,20993,21395,21396,21714)
GROUP BY subtyp1 |