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 (5330,5346,5360,5362,5364,5454,5550,5551,5552,5553,5643,5644,5645,5652,5653,5719,5731,5744,5752,5753,5763,14281,14282,14283,14287,15539,16248,16607,16655,16670,16671,16672,16675,16676,16685,17592,21061,21067,21069,21071,21075,21076,21079,21082,21084)
GROUP BY subtyp1 |