SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='MENS' and upper(subtyp1)<>'EMPTY' and style_id IN (2362,3346,3349,3351,3354,4218,4954,4970,4973,4992,4993,5004,8140,8150,10338,11626,14072,14075,15105,15376,15448,16580,16725,16726,16858,16865,16932,16935,16957,16962,16993,16995,17003,17391,17610,17646,17820,18510,18845,18901,19073,19124,19230,19383,19577,19612,19884,20004,20006,20210,20212,20971,20992,21001,21393,21394,21607,21608,21713)
GROUP BY subtyp1 |