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 (3346,3349,3354,3669,3689,4954,4973,4993,5004,11475,11626,14619,14620,14842,15105,15448,15696,16112,16510,16511,16512,16580,16725,16934,16935,16962,16995,17610,17612,17646,17859,18510,18845,18901,19057,19073,19124,19612,19750,19998,20090,20210,20212,21244,21248,21256,21607,21608,21871,21872,21874,21879)
GROUP BY subtyp1 |