SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='By Activity' and upper(subtyp2)<>'EMPTY' and style_id IN (420,425,431,433,436,437,439,442,1319,1341,1368,1425,1429,1758,2136,2137,2141,2148,2156,5871,5887,5898,5900,5920,6139,6295,8679,8692,8723,10279,10353,10397,10405,10420,10614,11269,11402,14177,14635,14683,14785,15251,16803,16805,18957,19069,20857,20962,20963,20964,20967,21057,21238,21715,21741)
GROUP BY subtyp2 |