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 (3309,3314,3352,3690,11625,14571,16507,16581,16628,16997,17519,17520,17609,17611,17647,17860,18133,18134,18417,18511,18846,19076,19126,19142,19143,19475,19613,19751,19810,19997,20202,20211,20213,21606,21609)
GROUP BY subtyp2 |