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,431,432,433,439,442,1319,1342,1367,1368,1391,1418,1425,1426,1429,1430,1758,2136,2137,2141,2149,2156,2160,5823,5826,5828,5831,5833,5845,5847,5866,5871,5878,5898,5900,5920,6139,6184,6261,6295,8679,8692,8693,8723,10279,10339,10353,10397,10405,10420,10614,10720,10741,11269,11274,11280,14177,14278,14634,14635,14636,14783,14785,15251,16406,16408,16457,16459,16617,16803,16805,18843,5837,10740)
GROUP BY subtyp2 |