SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and upper(subtyp1)<>'EMPTY' and style_id IN (1319,1429,2829,3293,3294,5365,5649,6295,14069,15475,16405,16410,16683,16835,17895,19167,19215,19218,19557,20501,20875,20876,20904,20905,20957,20962,20963,20982,21113,21115,21116,21117,21118,21120,21121,21126,21128,21130,21133,21134,21136,21140,21240,21315,21319)
GROUP BY subtyp1 |