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 (1561,1562,3496,3515,3550,3604,3638,3666,4898,4990,5002,5471,9784,10254,10729,14674,15518,16423,17720,18295,18811,19260,19273,20597,21245,21246,21379)
GROUP BY subtyp1 |