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 (1563,1565,1965,1975,3496,3515,3550,3604,3638,4989,4990,5471,5671,9784,14374,14674,15518,16422,16677,18809,18811,19273,20597,21080,21245,21257,21379)
GROUP BY subtyp1 |