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 (826,1998,2441,3309,3314,3352,3690,6133,8679,10405,11625,14612,14785,15697,16508,16829,16997,17519,17520,17609,17860,18134,18417,18511,19142,19143,19209,19475,19613,19997,20028,20213,20713,21318,21606,21609,21873,21876,21878,21880)
GROUP BY subtyp1 |