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 (5346,5360,5362,5364,5454,5550,5551,5552,5553,5644,5645,5653,5731,5752,5753,5763,14281,14282,14283,14287,15539,16248,16655,16670,16671,16672,16675,16676,16685,17592,21069,21071,21079)
GROUP BY subtyp1 |