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,431,432,433,437,439,442,1308,1319,1320,1341,1342,1367,1368,1418,1425,1426,1429,1430,1758,2136,2137,2141,2149,2156,2160,5823,5826,5833,5866,5871,5878,5883,5886,5898,5900,5920,6139,6184,6261,6295,8679,8692,8693,8723,10279,10353,10397,10405,10420,10614,10720,11269,11273,11274,11276,11280,11402,14177,14634,14635,14636,14683,14785,15251,16405,16406,16408,16457,16459,16617,16618,16803,16805,17671,17672,17673,17679,18713,18714,18715,18716,18843,18957,18959,19069,19539,19540,19583,5837,10740)
GROUP BY subtyp2 |