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 (1792,2171,3129,3531,5331,5503,5526,5594,5637,5638,5700,5726,5728,5732,5737,5745,9421,9594,9595,9927,9931,14067,14333,14518,14616,15086,15123,15469,15809,15810,16669,16806,16808,17472)
GROUP BY subtyp2 |