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 (1996,3346,3349,4954,4993,11475,11626,15448,15696,16510,16511,16512,16582,16725,16962,16963,16995,17612,18510,18655,18901,19057,19073,19124,19192,19208,19998,20212)
GROUP BY subtyp1 |