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 (826,1998,2441,3309,3314,3352,11625,15697,16508,17519,17520,17609,17860,18417,18511,19076,19142,19143,19209,19475,19997,20028,20213,21609,21873,21876,21878,21880)
GROUP BY subtyp2 |