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,1563,3496,3515,3550,3599,3604,3637,3638,3666,4387,4898,4989,4990,4992,5471,5671,6176,11293,11316,14674,15447,15518,16422,16423,16677,17032,18809,18811,18978,18980,19200,19260,19273,20597,21001,21080,21245,21257,21379,21825)
GROUP BY subtyp1 |