SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Footwear' and upper(subtyp2)<>'EMPTY' and style_id IN (2444,3676,4960,8154,14073,15881,16724,16727,16861,16866,16958,17002,17650,18186,18429,18538,18615,19007,19009,19122,19384,19885,19994,20002,20003,20027,20504,20507,20602,20912,20972,20993,21395,21396,21714)
GROUP BY subtyp2 |