SQL |
SELECT DISTINCT subtyp1, count(distinct style_id) as itemCount
FROM web_all_products
WHERE dept='CLOTHING AND FOOTWEAR' and typ='WOMENS' and upper(subtyp1)<>'EMPTY' and style_id IN (5326,5361,5363,5365,5391,5535,5563,5564,5565,5637,5649,5719,5722,5726,5732,5745,5748,5755,5771,14068,14069,15475,16660,16669,16683,18261,21057,21066,21085,21088,21089)
GROUP BY subtyp1 |