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 (5324,5330,5337,5339,5346,5360,5362,5364,5405,5438,5449,5451,5454,5471,5479,5550,5551,5552,5553,5643,5644,5645,5652,5653,5662,5696,5697,5706,5718,5719,5722,5731,5752,5753,5763,5772,11362,14255,14281,14282,14283,14287,15496,15499,15539,16169,16170,16248,16607,16655,16670,16671,16672,16675,16676,16677,16685,16827,17592,17702,17971,17972,18016,18740,18741,18803,18809,18811,19589,19931,20029,20179,21061,21067,21068,21069,21071,21075,21076,21078,21079,21080,21082,21084)
GROUP BY subtyp1 |