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 (419,420,425,431,433,436,437,439,442,1308,1318,1319,1341,1342,1368,1425,1429,1430,1758,2136,2137,2141,2148,2156,2160,5871,5887,5898,5900,5920,6139,6295,8679,8692,8723,10279,10353,10397,10405,10420,10614,10720,11269,11280,11402,14177,14635,14683,14785,15251,16405,16406,16408,16618,16803,16805,17671,18713,18714,19069,19071,20857,20904,20905,20906,20962,20963,20964,20965,20966,20967,20968,20969,21057,21127,21238,21715,21741)
GROUP BY subtyp2 |