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,4960,8183,8202,8327,10338,14073,14143,15090,15375,15881,16724,16861,16866,16958,17002,19042,19068,19231,19384,19885,19994,20002,20003,20027,20383,20912,20972,20993,21395,21396,21714)
GROUP BY subtyp1 |