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,5414,5535,5551,5563,5564,5565,5637,5649,5673,5719,5722,5732,5745,5748,5754,5755,14067,14068,14069,14275,16659,16660,16683,16684,18261,21057,21059,21066,21085,21086,21087,21088,21089,21090,21091)
GROUP BY subtyp1 |