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 (350,1792,3622,3635,5331,5446,5455,5594,5637,5638,5726,5732,5745,9721,9890,9927,9931,14067,15122,15423,16669,16806,16808,16809,16880,16881,17472,17625,17915,17917,17939,17944,17968,18262,18413,18688,18743,18956,19032,19127,19128,19129)
GROUP BY subtyp2 |