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 (1825,1998,3309,3314,3352,3690,5026,11625,14648,15697,16583,16628,16961,16997,17519,17520,18134,18417,19008,19076,19142,19143,19613,19751,19997,20028,20213,21609,21873,21880)
GROUP BY subtyp2 |