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,4954,4973,4993,5004,11626,15105,15448,16580,16725,16935,16962,16995,17610,17646,18510,18845,18901,19073,19124,19612,20210,20212,21607,21608)
GROUP BY subtyp1 |