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,3352,3690,5026,11625,14648,15697,16508,16961,16997,17520,17609,18417,19209,19613,19751,19810,19997,20028,20211,20213,21609,21873,21876,21878,21880)
GROUP BY subtyp2 |