SQL |
SELECT DISTINCT subtyp2, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and subtyp1='Outerwear' and upper(subtyp2)<>'EMPTY' and style_id IN (3622,3635,5331,5637,5638,5728,5732,5745,5762,9568,9594,9890,9904,9927,9931,14067,16087,16669,16808,16881,17939,17944,18413,19127,20577,20920,21057,21059,21066,21221,21223,21233,21237,21238,21239,21404,21486,21512,22108)
GROUP BY subtyp2 |