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 (378,2006,2362,3309,3347,3352,3676,3690,4217,4388,4960,4999,5019,8152,8154,8183,8203,8320,8329,10934,11625,14073,15055,15090,15516,15517,15881,16507,16628,16724,16727,16729,16861,16866,16939,17002,17609,17611,17647,17650,18133,18134,18511,18615,18846,19076,19122,19231,19384,19475,19613,19810,19885,19997,20002,20003,20027,20211,20602,20972,20993,21395,21396,21606,21609,21714)
GROUP BY subtyp2 |