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 (810,826,1825,1998,2441,2443,2445,3309,3314,3352,3690,5026,8203,11625,14571,14648,15446,15697,15883,16507,16508,16581,16583,16628,16936,16961,16997,17519,17520,17609,17611,17647,17860,18133,18134,18417,18511,18617,18656,18846,19008,19076,19126,19142,19143,19186,19209,19475,19613,19751,19765,19810,19997,20028,20202,20211,20213,20325,21606,21609,21873,21876,21878,21880)
GROUP BY subtyp2 |