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 (5361,5363,5391,5535,5551,5563,5637,5638,5649,5719,5732,5745,5754,5755,5771,14068,14069,14275,16659,16660,16669,17857,21057,21059,21086,21087,21088,21090,21091)
GROUP BY subtyp1 |