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,422,425,431,433,436,437,439,442,1308,1319,1341,1368,1425,1429,1758,2136,2137,2141,2148,2149,2160,5833,5866,5871,5878,5898,5900,6139,6184,6261,6295,8679,8692,8723,10279,10353,10397,10405,10420,10614,10720,11269,11274,11280,11402,14177,14635,14785,15251,16405,16406,16408,16459,16618,16803,16805,17671,17679,18713,18714,18715,18957,19069,19071,19583)
GROUP BY subtyp2 |