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,5471,5551,5652,5653,5671,5744,5763,14282,14283,14287,16248,16655,16670,16672,16675,16676,16677,17592,18809,18811,21071,21076,21080,21084)
GROUP BY subtyp1 |