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 (3496,3515,3550,3599,3604,3637,3638,3666,4898,5671,6176,11316,14674,16422,16423,16804,18295,18809,18978,18980,19200,19260,19273,21245,21246,21257,21379)
GROUP BY subtyp1 |