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 (8166,14072,14075,14076,16580,16582,16993,16995,16996,17003,19041,19992,19998,20000,20001,20004,20006,20049,20992,21569,21570,21573,21574,21575,21577,21579,21580,21583,21584,21586,21587,21589,21593,21713)
GROUP BY subtyp1 |